#include<cstdio>
int main(){
  double a;
  scanf("%lf",&a);
  printf("%.3lf",(double)5/9*(a-32));
}