a,*s=gets p (s.index(a) || -1) + 2