import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); //2 int H=sc.nextInt(); //7 int M=sc.nextInt(); //30 int T=sc.nextInt(); //5 int alerm=0; // for(int i = 0; i