int main()
{
    int t;
    while(scanf("%d\n",&t)!=EOF)
    {
        if(t>0)
            printf("1\n");
        if(t==0)
            printf("0.5\n");
        if(t<0)
            printf("0\n");
        
    }
}