use proconio::input; fn main() { input! { n: u64, k: u64, } println!("{}", k - 1); }