#include<bits/stdc++.h>
using namespace std;
int main(){
   int c;
   float f;
   cin>>c;
   f=(9/5.0*c)+32;
   printf("%.2f",f);
   }
/**************************************************************
	Problem: 1031
	User: tonghuawei
	Language: C++
	Result: Accepted
	Time:6 ms
	Memory:2072 kb
****************************************************************/