import java.util.*;

class InsufficientBalanceException
extends Exception {
    public InsufficientBalanceException (String msg)
    {
        super (msg);
        
    }
}
public class BankAccount {
    double balance;
    BankAccount(double b) {
    balance=b;
    }
    void withdraw(double amt) throws InsufficientBalanceException {
    if (amt > balance) throw new InsufficientBalanceException("Exceeds balance");
    balance -= amt;
    }
    public static void main(String[]args) {
        Scanner s = new Scanner(System.in);
        double bal=s.nextDouble();
        amt = s.nextDouble();
        if(bal < 0 || amt < 0) {
            System.out.println("Invalid input");
            return;
        }
        BankAccount acc = new BankAccount(bal);
        try {
            acc.withdraw(amt);
            System.out.println(1);
        } catch (InsufficientBalanceException e) {
            System.out.println(0);
        }
    }
    }
    