math+greedy