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