#include<iostream> using namespace std; int m,d; int main() { cin>>m>>d; if(m==1&&d<=25){ cout<<"Pig"<<endl; } else cout<<"Mouse"<<endl; return 0; }