fork download
  1. s = input()
  2. total = 0
  3. for i in range(len(s)):
  4. if s[i]=='w':
  5. total += 2
  6. else:
  7. total += 1
  8. print(total)
Success #stdin #stdout 0.08s 14104KB
stdin
vvwvw
stdout
7