a = int(input())
b = int(input())
c = int(input())

if a < 45 and b>= 45 and c >= 45:
    print(True)
elif (a) >= 45 and (b) < 45 and (c) >= 45:
        print(True)
elif int(a) >= 45 and int(b) >= 45 and int(c) < 45:
        print(True)
else:
    print(False)
