import strutils var S = stdin.readLine while S.len != 0: var cnt = 0 for s in S: if s == 'o': cnt += 1 echo cnt / S.len * 100 S = S[1 .. ^1]