#include <iostream>
using namespace std;

int main() {
    float K;
    scanf("%f", &K);
    printf("%f", K * 1.8 - 459.67);
}