use proconio::input; fn main() { input! { s: String, } let ans: u64 = (s.len() as u64 + 1) * 9; println!("{ans}"); }