include<stdio.h>

main()
{double f,c;
scanf("%lf",&f);
c=(double)5/9*(f-32);
printf("%.3lf",c);}