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