#include using namespace std; constexpr int mod = 1000000007; int main() { int a, b; cin >> a, b; if (a == 4 && b == 1)cout << 1; else cout << a + b; }