#include <bits/stdc++.h>
//#include <boost/range/algorithm/find_if.hpp>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

const int MOD = 1000000007;
const int INF = 999999999;

/*int main(){
    string S;
    cin >> S;
    int L, R;
    if(S == "keyence"){cout << "YES";}else{
        bool flag = true;
        /*if(S[0] == 'k' || S[0] == 'e' || S[0] == 'y' || S[0] == 'n' || S[0] == 'c'){
            flag = true;
        }else{
            flag = false;
        }*/
        
/*        rep(i, S.size){
            if(flag == true){
                if(S[0] == 'k' || S[0] == 'e' || S[0] == 'y' || S[0] == 'n' || S[0] == 'c'){
            
                }else{
                    flag = false;
                    L = i;
                }
            }else{
                if(S[0] == 'k' || S[0] == 'e' || S[0] == 'y' || S[0] == 'n' || S[0] == 'c'){
                    flag = true;
                    R = i;
                }else{
                    
                }
            }
        }
    }
    cout << L << " " << R << endl;
return 0;}
/**
 * g++ code.cpp
 * ./a.out
 * shift + ctrl + i
**/ 