#include<stdio.h>
int main(){
    double f;
    scanf("%lf",&f);
    printf("%.3lf",(double)5/9*(f-32));
    return 0;
}