inp = input() split_first = inp.split(' ') Y = int(split_first[0]) M = int(split_first[0]) D = int(split_first[0]) def hantei(Y,M,D): if (1989