#include<bits/stdc++.h> using namespace std; int main(){ double C; double f; cin>>C; f=C*9.0/5+32; cout<<f<<endl; return 0; }