use proconio::input; fn main() { input! { a: String, b: String, } let mut s: Vec = a.chars().collect(); let mut t: Vec = b.chars().collect(); s.sort(); t.sort(); let ans = if s == t { "YES" } else { "NO" }; println!("{ans}"); }