s = input()total = 0for i in range(len(s)): if s[i]=='w': total += 2 else: total += 1print(total)
v
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!