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