#include<bits/stdc++.h>
using namespace std;
int main(){
	int c;
	float f;
	cin>>c;
	f=9/5*c+32+40;
	printf("%.2f",f);
	
}

/**************************************************************
	Problem: 1031
	User: zhengzihao3
	Language: C++
	Result: Wrong Answer
****************************************************************/