#include<bits/stdc++.h> using namespace std; double k,c,f; int main(){ cin>>k>>c>>f; c=k-273.15; f=c*1.8+32; if(k>300) cout<<"Temperature is too high!"; else printf("%.21f %.21f",c,f); return 0; }