while 1:print"1ijk"[reduce(lambda b,c:b^c,[ord(a)%4*(a>"h")for a in raw_input()])]