#include <stdio.h>
void y(double x) {
    if (x > 0) {
printf("1\n");
    } 
    else if (x == 0) {
        printf("0.5\n");
    } else {
        printf("0\n");
    }

}
int main() {
    double a,b;
    while (scanf("%lf", &a) != EOF) {
    y(a);
    }
    return 0;
}