fork download
  1. s=input().split()
  2. k=0
  3. for w in s:
  4. if w[0].lower()==w[-1].lower(): k+=1
  5. print(k)
Success #stdin #stdout 0.08s 14092KB
stdin
aalkkaaylkkkkkkkkkasddkkkrftgkkkkk
stdout
0