// Arup Guha
// 7/13/04
// Solution to 2004 BHCSI Temperature program.

import java.io.*;

public class Temp {

  public static void main(String[] args) throws IOException {

    BufferedReader stdin = new BufferedReader
				(new InputStreamReader(System.in));

    // Get the user input.
    System.out.println("Please enter a temperature in Fahrenheit.");
    int fahr = Integer.parseInt(stdin.readLine());

    // Convert - the 5.0 ensures that a real number division is done
    // instead of an integer division.
    double cel = 5.0/9*(fahr-32);

    // Output the result.
    System.out.println("Your temperature in Celsius is "+cel+".");
  }
}
