import java.util.*;

class CustomException extends Exception {
    public CustomException() {
        super();
    }
}

public class Withdrawals {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            double ib = sc.nextDouble();  // initial balance
            double amt = sc.nextDouble(); // withdrawal amount

            if (ib < 0 || amt < 0) { 
                // negative inputs invalid
                System.out.print("Invalid input");
            } 
            else if (ib >= amt) {
                // withdrawal possible
                System.out.print("1");
            } 
            else {
                // insufficient balance → throw custom exception
                throw new CustomException();
            }
        } 
        catch (CustomException e) {
            System.out.print("0");  // insufficient balance
        } 
        catch (Exception e) {
            System.out.print("Invalid input");
        }
    }
}
