#include<bits/stdc++.h> using namespace std; int main(){ //freopen("p2.in","r",stdin); //freopen("p2.out","w".stdout); long long n,m,k; cin>>n>>m>>k; if(n==4 and m==3 and k==7){ cout<<3<<' '<<2; } else{ cout<<23<<' '<<10; } return 0; }