#include using namespace std; int main() { int N,H,M,T; cin >> N >> H >> M >> T; for(int i=0;i