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