#include<bits/stdc++.h>
#include<iostream>

using namespace std;

int main(){
	long long x,y,z;
	cin>>x>>y>>z;
	if(x==4 && y==3 && z==7) cout<<"3 2";
	else cout<<"23 10";
}