#include<bits/stdc++.h>
using namespace std;
int main()
{
	//f=9/5*c+32    输入50  输出122.00//
    int  c;
	scanf("%d",&c);
	
	float f=9.0/5*c+32;
	printf ("%.2f",f);	

	return 0;
}

/**************************************************************
	Problem: 1031
	User: ct001
	Language: C++
	Result: Accepted
	Time:14 ms
	Memory:2076 kb
****************************************************************/