#include<iostream>using namespace std;int main(){ double r,R; while(cin>>r){ R = (r*9)/5+32; cout<<R<<endl; } return 0;}