#include using namespace std; int main(){ int X, Y; cin >> X >> Y; if(X > Y) swap(X, Y); if((X + 4) % 12 != Y) cout << (X + 4) % 12; if((Y + 4) % 12 != X) cout << (Y + 4) % 12; }