n = str(input()) print(abs(len(n)-10))