s = input() count_k = s.count('k') if count_k == 0: print(0)elif count_k == 1: print(s.index('k') + 1)else: print(count_k)
Lo hghkbhvfdgtttt Yhjjllga kknhjgvhghkkvthbbygk
7
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!