#include #define rep(i,n) for(int i=0;i>a>>b>>c; if(a*60==b) cout<<0<