#include<iostream> using namespace std; int main(){ float f,c; cin>>c; f = c*9/5+32; cout<<f<<endl; return 0; }