while 1:t=map(int,raw_input().split());print+(sum(t)>max(t)*2)