2022-11-06 AtCoder Beginner Contest 276 A - Rightmost Atcoder Python ABC S=list(input()) count=-1 for i,j in enumerate(S): if j=="a": count=i+1 print(count)