#include "bits/stdc++.h" using namespace std; using ll = long long; using IP = pair; const ll linf = 1LL << 62; const int inf = 99999999; const int dx[4] = { 1,0,-1,0 }; const int dy[4] = { 0,1,0,-1 }; const ll atcoder = 1e9 + 7; #define Endl endl #define mp make_pair #define all(v) v.begin(),v.end() #define pb push_back #define pr(x) cout << x << endl #define chmax(x,y) x = max(x,y) #define chmin(x,y) x = min(x,y) #define rep(i,n) for(int i= 0;i> a >> b >> c; if (b == '2') pr(4); else if (b == '3')pr(1); else pr(14); //system("pause"); return 0; }