print((function (s) return math.abs(#s-10) end)(io.stdin:read("*l")))