#include using namespace std; typedef long long ll; int main() { int h,m; string s; cin>>h>>m>>s; int t=60*h+m-540; int n=0; for (int i=4;i