a=list(open(0))[0] print(*[int(a[i]==a.upper()[i])for i in range(26)])