import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String str;
while((str = bf.readLine()) != null){
int num = Integer.parseInt(str);
if(num > 0){
System.out.println(1);
}
else if(num == 0){
System.out.println(0.5);
}
else{
System.out.println(0);
}
}
}
}
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String str;
while((str = bf.readLine()) != null){
int num = Integer.parseInt(str);
if(num > 0){
System.out.println(1);
}
else if(num == 0){
System.out.println(0.5);
}
else{
System.out.println(0);
}
}
}
}