#include <stdio.h>

int main() {
    float f;
    scanf("%f",&f);
    printf("%.3f",(5.0/9)*(f-32));
  
    return 0;
}