#include #include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int x, y; cin >> x >> y; if (x > y) swap(x, y); if (y - x == 4) cout << (y + 4) % 12 << endl; else cout << y - 4 << endl; return 0; }