import sequtils,strutils var N,H,M,T : int (N, H, M, T) = stdin.readline.split.map(parseInt) for i in 1..