#include <iostream>
using namespace std;
int main()
{
double n, r;
cin >> n;
r = ((9 * n) / 5) + 32;
cout << r << endl;
}