#include using namespace std; int main() { int N,K; cin>>N>>K; cout<<(K-1); }