#include using namespace std; int main(){ int x,y; cin>>x>>y; cout<<((((x+y)/2)%12)+6)%12; }