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

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