import java.util.Scanner;
public class d051 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
double F =sc.nextDouble();
double C = (F-32)*5/9;
System.out.printf("%.3f",C);
}
}