#include int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); long long N, K; std::cin >> N >> K; std::cout << K - 1 << '\n'; }