#include <stdio.h>

int main()
{
	double f1 = 0; 
	scanf("%lf", &f1); 
	printf("%.3lf\n", (5 / 9.0) * (f1 - 32));

}