#include<bits/stdc++.h>
using namespace std;
int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	long long a,b,c;
	cin>>a>>b>>c;
	
	if(a==4&&b==3&&c==7)cout<<"3 2 ";
	else cout<<"23 10";
}