#include<bits/stdc++.h>
using namespace std;
int main(){
	int j,t;
	j=(4*50-160)/2;
	t=50-j;
	cout<<j<<" "<<t; 
}
/**************************************************************
	Problem: 1015
	User: wangyiyang
	Language: C++
	Result: Accepted
	Time:4 ms
	Memory:2072 kb
****************************************************************/