Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- // Sample code to perform I/O:
- cin >> name; // Reading input from STDIN
- cout << "Hi, " << name << ".\n"; // Writing output to STDOUT
- // Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
- */
- // Write your code here
- #include <iostream>
- using namespace std;
- int main()
- {
- int N;
- cin>>N;
- int i=1;
- while(N>=0)
- {
- if((N-2*i)<=0)
- {
- cout<<"Motu"<<endl;
- break;
- }
- if((N-i)<=0)
- {
- cout<<"Patlu"<<endl;
- }
- else
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement