#include <stdio.h>
int main() {
    int t;
    while (scanf("%d", &t) != EOF) {
        if(t == 0)
        printf("0.5\n");
        else
        t > 0 ? printf("1\n") : printf("0\n");
    }
    return 0;
}