s = input() t = "odayukiko".replace(s,"") a = 0 for _ in range(8): a += input().count(".") print(s if a%2==0 else t)