The frst line of the standard input contains the count of events (1≤N≤100) and a time (1≤X≤23). The next N lines contain the data of events: in the form of 4 integers separa