Green algorithm

NEXT