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