import sys input=lambda: sys.stdin.readline().rstrip() print(abs(len(input())-10))