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