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