#include <iostream>
using namespace std;
int main()
{
float x;
cin >> x;
cout << (x*3)+33.8; // 1 grad celsius = 33.8 grade f
return 0;
}