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