t='d' for s in open(0):t+=s;print('mweooowf'[s>t:t.count(s)*2:2])