#include <stdio.h>
int main(){
    double f,c,k;
    scanf("%lf",&k);
    c=k-273.15;
    f=c*1.8+32;
    printf("%lf",f);
    return 0;
}