a="d" for b in open(0):a+=b;print("wmoeoofw"[a>b:a.count(b)*2:2])