import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while(scan.hasNextInt()) {
            int time = scan.nextInt();
            if(time > 0) {
                System.out.println(1);
            } else if(time == 0) {
                System.out.println(0.5);
            } else {
                System.out.println(0);
            }
            
        }
    }
}