#include<bits/stdc++.h>
using namespace std;
int main(){
    int	n,m,k;
	cin>>n>>m>>k;
	if(k<10)cout<<"3 2";
	else cout<<"23 10";
}