#include int main(){ int n,mod;std::cin>>n>>mod; int x=0,y=1; for(int i=0;i