a=int(input()) b=int(input()) c=int(input()) if a<=60 or b<=60 or c<=60: print("1") else: print("0")
(惊,oier竟是py渣渣......) (为小中考慌张......)