#include <stdio.h>
int main () {
    double C;
    double F;
    scanf("%lf", &C);
    F=C*1.8+32;
    printf("%.2lf", F);
return 0;
}
