#include<stdio.h> int main(void) { int F; float C; scanf("%d", &F); C = 5*( F - 32 ) / 9; printf("%.5f", C); return 0; }