#include<bits/stdc++.h> using namespace std; long long k, n; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> k >> n; if(k == 1) { cout << n << "\n"; } return 0; }