def change(s1,k1,ind): for i in range(k1): if s1[ind]=='X': s1[ind]='O' else: s1[ind]='X' ind+=1 return s1 t=raw_input() t=t.upper() n=input() l=len(t) s=0 j='O'*n while s<=l: t=list(t) if 'X' in t: p=t.index('X') s=p+n if s<=l: t=change(t,n,p) else: s=l+1 else: s=l+1 print t.count('O')
why am I getting NZEC error in the line "t=raw-input()", during compilation?