#include <stdio.h>

int main()
{
    float t,y;
    while(scanf("%f", &t)!=EOF)
    {
        if(t>0)
        {
            printf("1\n");
        }
        else if(t==0)
        {
            printf("%.1f\n", 1.0/2);
        }
        else
        {
            printf("0\n");
        }
    }
    return 0;
}