#include <stdio.h>

int main() {
    float input = 0;

    while (scanf("%f",&input) != EOF)
    {
        if(input > 0)
        {
            printf("%d\n",1);
        }
        else if (input < 0)
        {
            printf("%d\n",0);
        }
        else 
        {
            printf("%.1f\n",0.5);
        }
    }
    return 0;
}