#include <iostream>
using namespace std;

int main() {
    
    int n;
    cin >> n;
    
    if(n % 3 == 0) {
        cout << "Nema ostatokot" << endl;
    }
    else if(n % 3 == 1) {
        cout << "Ostatok 1" << endl;
    }
    else {
        cout << "Ostatok 2" << endl;
    }

    return 0;
}
