#![allow(non_snake_case, unused_imports)] use proconio::{input, marker::Usize1, marker::Chars}; use itertools::Itertools; #[allow(unused_macros)] macro_rules! d { ( $( $x:expr ),* $(,)? ) => { eprintln!( concat!( $( stringify!($x), "={:?} " ),* ), $( $x ),* ); }; } #[allow(dead_code)] fn yn(b: bool) -> &'static str { if b { "Yes" } else { "No" } } fn main() { input! { N: i64, } let xs = N.to_string() .chars() .map(|c| c.to_digit(10).unwrap()) .collect_vec(); let [a, b, c] = xs.try_into().unwrap(); println!("{}", yn(a + c == b)); }