#include using namespace std; #define rep(i,n) for(int i=0;i>a>>b>>c; if(60*a<=b){ cout<<-1<