s = gets
digits = s[0] == '-' ? [-s[1].to_i] + s[2..-1].each_char.to_a : s.each_char
puts s.to_i + s.strip.size + digits.map(&:to_i).inject(&:+)
cyA9IGdldHMKZGlnaXRzID0gc1swXSA9PSAnLScgPyBbLXNbMV0udG9faV0gKyBzWzIuLi0xXS5lYWNoX2NoYXIudG9fYSA6IHMuZWFjaF9jaGFyCnB1dHMgcy50b19pICsgcy5zdHJpcC5zaXplICsgZGlnaXRzLm1hcCgmOnRvX2kpLmluamVjdCgmOisp