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