Xay and Zz like playing games very much. One day Xay comes up with a good idea.
There are n piles of stones and m magic numbers. The number of stones in the i-th pile can be any positive integer from

to

.
Xay and Zz take turns removing stones. Xay goes first. Each player can choose a pile, and take any positive integer number of stones from it, and the number of stones taken x must satisfy
%3D1)
or x is a magic number, where

stands for the Mobius function. The first player who can't make a move loses the game.
Xay wants to know in how many of the

possible starting situations will he win. This number may be very large. You only need to output it modulo

.