#include<bits/stdc++.h> using namespace std; int main() { int a[3][4]={1,3,5,7,9,11,13,15,17,19,21,23},x,y; cin>>x>>y; cout<<a[x][y]; return 0; }