H,M=map(int,input().split()) start=7*60+30 end=8*60+30 if H*60+M