[#2] simple greedy