#include <iostream> using namespace std; int main() { float c, f; cin >> c; cout << c * 9 / 5 + 32; return 0; }