https://www.spoj.com/problems/SUBSUMS/