import kotlin.math.abs fun main(args : Array) { val S = readLine() ?: "" println(abs(S.length - 10)) }