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