You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Little Tom is a very clever boy, one day he is paint a 1*n grid. There is only two color: blue and red, but red can't paint in two adjacent grids, little Tom want to known how many different means to paint the grids.
Input
There will be multiple test cases. Each case contain the number of the grid n(0≤n≤10000).If input -1 is the end of the case.
Output
The different means to paint the grids. The number of the result may be very large, the result should mod 10000007.