s=input().split()k=0for w in s: if w[0].lower()==w[-1].lower(): k+=1print(k)
aalkkaaylkkkkkkkkkasddkkkrftgkkkkk
0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!