import java.util.Scanner;
class NoException extends Exception{
    public NoException(String msg){
        super(msg);
    }
}
public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        double bal=sc.nextDouble();
        double withdraw=sc.nextDouble();
        if(bal>-1&&withdraw>-1){
            try{
                if(withdraw<bal){
                    System.out.println(1);
                }else if(withdraw>bal){
                    throw new NoException(0);
                }
        }
        catch(NoException e){
            System.out.println(e.getMessage());
        }
    }
    else{
        System.out.println("Invalid input");
    }
}
}