import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner kb = new Scanner(System.in); int n = kb.nextInt(); for(int i=0; i=60) { resultM = (m1+m2)%60; resultH++; } if(resultH>12) { resultH = resultH%12; if(resultH == 0) { resultH = 12; } } System.out.println("#"+(i+1)+" "+resultH+" "+ resultM); } } }