Final submit for greedy