month, day = map(int, input().split()) if month > 1: print("Mouse") else: if day >= 25: print("Mouse") else: print("Pig")