#include using longlong=long long; int main(){ std::cin.tie(nullptr);std::cin.sync_with_stdio(false); int n,h,m,t;std::cin>>n>>h>>m>>t; for(int i=0;i