#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	a=(160-50*2)/2;
	b=50-a;
	cout<<b<<" "<<a;
	
}

/**************************************************************
	Problem: 1015
	User: hongjiaming
	Language: C++
	Result: Accepted
	Time:4 ms
	Memory:2072 kb
****************************************************************/