r=io.read r()while""do a=r()print(os.date(a.." %B",25e5*a))end