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