#include<bits/stdc++.h> using namespace std; int main() { int y,n; cin>>y>>n; if(y==1&&n<=24) cout<<"Pig"; else cout<<"Mouse"; return 0; }