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