#include <stdio.h>

int main() { double x = 0; while (scanf("%lf", &x) != EOF) { if (x > 0) printf("1\n"); else if (x == 0) printf("0.5\n"); else printf("0\n"); } return 0; }