# -*- coding: utf-8 -*- n = input() print(abs(len(n) - 10))