#include using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define INF32 2147483647 #define ALL(x) x.begin(), x.end() vector ddx = {0, 1, 0, -1, 1, 1, -1, -1}; vector ddy = {1, 0, -1, 0, 1, -1, -1, 1}; int main() { int x,y;cin>>x>>y; if((x + 4) % 12 == y) cout<< (x + 8) % 12 <