while 1:print sum(1^445307%' bdcfmgh vqwjpzxyk'.find(c)for c in raw_input())