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