#include<iostream>
using namespace std;
int main()
{
int c;
cin >> c;
double f = c * 1.8 + 32;
cout << f << endl;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int c;
cin >> c;
double f = c * 1.8 + 32;
cout << f << endl;
return 0;
}