UVA — 13053 (Gift Box)
Can anyone provide any ideas on how to approach and solve this problem ?
https://onlinejudge.org/external/130/13053.pdf