#include int main() { int a, b; scanf("%d%d",&a,&b); a > b ? printf("%d\n", (a + 4) % 12):printf("%d\n", (b + 4) % 12); }