@staticmethod
def a():
    a = [int(x) for x in sys.stdin.readline().split()]
    c = Counter(a)
    print(('YES' if ((c[5] == 2) and (c[7] == 1)) else 'NO'))
@staticmethod
def a():
    a = [int(x) for x in sys.stdin.readline().split()]
    c = Counter(a)
    print(('YES' if ((c[5] == 2) and (c[7] == 1)) else 'NO'))