typedef long long ll; typedef long double ld; #include using namespace std; #define int long long signed main() { ll x,y; std::cin >> x>>y; if((x+4)%12==y){ std::cout << (y+4)%12 << std::endl; }else{ std::cout << (x+4)%12 << std::endl; } }