a=int(input()) b=int(input()) c=int(input()) d=0 e=0 f=0 if a+b>c: d=1 if b+c>a: e=1 if a+c>b: f=1 if d+e+f==3: print(1) else: print(0)