#include<bits/stdc++.h>
using namespace std;
int main(){
	int c;
	double f;
	scanf("%d",&c);
	f=9/5.0*c+32;  
	printf("%.2f",f);
	return 0;
}	

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