I was trying to solve this question which was asked in the ACM ICPC Amritapuri regional today morning.
Both the main and the mirror contests have ended .
The only conclusion which I made is that the growth of the numbers is exponential and hence the maximum number of elements cannot exceed 60 and this is a subset sum problem.
Any hints on how to approach this problem would be appreciated.
Thanks