わかさぎのブログ

プログラミング、Atcoderの勉強とか

AtCoder Beginner Contest 276 A - Rightmost

S=list(input())

count=-1
for i,j in enumerate(S):
    if j=="a":
        count=i+1

print(count)