#include<stdio.h>
main(){
    int N,M;
    scanf("%d%d",&N,&M);
    if(N <= M){
        printf("1\n");
        
    }else{
        printf("-1\n");
    }
}