#include <iostream>
using namespace std;

int main() {
    float C, F;
    cin >> C;
    F = C * 9 / 5 + 32;
    cout << F;
    return 0;
}