void theta(int num)
{
if(num > 0)
{
printf("1\n");
}
else if(num == 0)
{
printf("0.5\n");
}
else
{
printf("0\n");
}
}
int main()
{
int a;
while(scanf("%d",&a) != EOF)
{
getchar();
theta(a);
}
return 0;
}