while(0<1)println(1-(readLine split' 'combinations 2 count(a=>a(0)>a(1)))%2*2)