#include<bits/stdc++.h>
using namespace std;
int main()
{
double k,c=0,f=0,d=0,e=0,g=0,v=0;
int a=0,b=0;
cin>>k;
if(k>212)
cout<<"Temperature is too high!"<<endl;
if(k<=212)
{
c=k-273.15;
f=c*1.8+32;
a=c*100;
b=f*100;
g=a;
v=b;
d=g/100;
e=v/100;
}
cout<<d<<" "<<e;
return 0;
}