s=input() e,w=s.find('OOO'),s.find('XXX') print(['EWaesstt'[e<0 or-1