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

	return 0;
}

/**************************************************************
	Problem: 1031
	User: hbq
	Language: C
	Result: Compile Error
****************************************************************/