How to solve SPOJ problem YAPP?
Problem link
Why is the answer 2 ^ ( n — 1 ) ?
ICPC NA North Central and South Division