/* -*- coding: utf-8 -*- * * 1893.cc: No.1893 Cycle - yukicoder */ #include #include using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int x, y; scanf("%d%d", &x, &y); if (x > y) swap(x, y); int z = (y * 2 - x) % 12; printf("%d\n", z); return 0; }