Iroha loves Haiku. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order.
To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.

-----Constraints-----
 - 1≦A,B,C≦10

-----Input-----
The input is given from Standard Input in the following format:
A B C

-----Output-----
If it is possible to construct a Haiku by using each of the phrases once, print YES (case-sensitive). Otherwise, print NO.

-----Sample Input-----
5 5 7

-----Sample Output-----
YES

Using three phrases of length 5, 5 and 7, it is possible to construct a Haiku.
[{"code": "haiku = list(map(int, input().split()))\nif haiku == [5, 5, 7] or haiku == [5, 7, 5] or haiku == [7, 5, 5]:\n\tprint(\"YES\")\nelse:\n\tprint(\"NO\")", "passed": true, "time": 0.15, "memory": 14304.0, "status": "done"}, {"code": "a,b,c=map(int,input().split())\nb5=0\nb7=0\nif a==5:\n  b5+=1\nif a==7:\n  b7+=1\nif b==5:\n  b5+=1\nif b==7:\n  b7+=1\nif c==5:\n  b5+=1\nif c==7:\n  b7+=1\nif b5==2 and b7==1:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.35, "memory": 14148.0, "status": "done"}, {"code": "a=sorted(list(map(int,input().split())))\nif a[0]==a[1]==5 and a[2]==7:\n  print(\"YES\")\nelse:\n  print(\"NO\")\n", "passed": true, "time": 0.15, "memory": 14284.0, "status": "done"}, {"code": "L = list(map(int, input().split()))\n\nif L == [5, 7, 5] or L == [5, 5, 7] or L == [7, 5, 5]:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "A,B,C = list(map(int,input().split()))\nsev = 0\nfiv = 0\n\nif A == 7 :\n  sev += 1\nelif A == 5:\n  fiv += 1\nif B == 7:\n  sev += 1\nelif B == 5:\n  fiv += 1\nif C == 7:\n  sev += 1\nelif C == 5:\n  fiv += 1\nif sev == 1 and fiv == 2:\n  print(\"YES\")\nelse:\n  print(\"NO\")\n\n\n", "passed": true, "time": 1.87, "memory": 14052.0, "status": "done"}, {"code": "array = list(map(str, input().split()))\nif ( array.count('5') == 2 ) and ( array.count( '7') == 1 ):\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.15, "memory": 14320.0, "status": "done"}, {"code": "text = str(input())\ncnt = 0\n\nfor i in text:\n    if i == \"5\":\n        cnt += 1\n    if i == \"7\":\n        cnt += 2\n\nif cnt == 4:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.2, "memory": 14020.0, "status": "done"}, {"code": "# coding:UTF-8\nimport sys\n\n\ndef resultSur97(x):\n    return x % (10 ** 9 + 7)\n\n\ndef __starting_point():\n    # ------ \u5165\u529b ------#\n    # 1\u884c\u5165\u529b\n    aList = list(map(int, input().split()))     # \u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u9023\u7d9a\u6570\u5b57\n\n    x = 5\n\n    # ------ \u51e6\u7406 ------#\n    c5 = 0\n    c7 = 0\n    for a in aList:\n        if a == 5:\n            c5 += 1\n        elif a == 7:\n            c7 += 1\n\n    # ------ \u51fa\u529b ------#\n    if c5 == 2 and c7 == 1:\n        print(\"YES\")\n    else:\n        print(\"NO\")\n\n__starting_point()", "passed": true, "time": 0.2, "memory": 14144.0, "status": "done"}, {"code": "S = input()\nprint('YES' if S.count(\"5\") == 2 and S.count(\"7\") == 1 else 'NO')", "passed": true, "time": 1.94, "memory": 14200.0, "status": "done"}, {"code": "print('YES' if sorted(input().split()) == ['5', '5', '7'] else 'NO')", "passed": true, "time": 0.21, "memory": 14172.0, "status": "done"}, {"code": "a,b,c = map(int,input().split())\nif  a+b+c == 17 and a*b*c == 175:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.28, "memory": 14292.0, "status": "done"}, {"code": "w_list = list(map(int, input().split()))\n\nif w_list.count(5) == 2 and w_list.count(7) == 1:\n  print(\"YES\")\n  \nelse:\n  print(\"NO\")", "passed": true, "time": 0.2, "memory": 14316.0, "status": "done"}, {"code": "l = [int(x) for x in input().split()]\nl = sorted(l)\nif l.count(5)==2 and l.count(7)==1:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "from typing import List\n\n\ndef answer(abc: List[int]) -> str:\n    return 'YES' if sorted(abc) == [5, 5, 7] else 'NO'\n\n\ndef main():\n    abc = list(map(int, input().split()))\n    print(answer(abc))\n\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.15, "memory": 15024.0, "status": "done"}, {"code": "n = list(map(int,input().split()))\nN5 = 0\nN7 = 0\nfor i in n:\n  if i == 5:\n    N5 += 1\n  elif i == 7:\n    N7 += 1\nif N5 == 2 and N7 ==1:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "A = map(int,input().split())\n\nAS = sorted(A)\n\nI = [5,5,7]\n\nif AS == I:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "A,B,C=map(int, input().split())\nif (A==5 and B==7 and C==5) or (A==5 and B==5 and C==7) or (A==7 and B==5 and C==5):\n  print (\"YES\")\nelse:\n  print (\"NO\")", "passed": true, "time": 0.22, "memory": 14184.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\nin_arr = input().split()\n\nif in_arr.count('5') == 2 and in_arr.count('7') == 1:\n    print('YES')\nelse:\n    print('NO')\n", "passed": true, "time": 0.23, "memory": 14136.0, "status": "done"}, {"code": "l = list(input().split())\nl.sort()\nif l == ['5', '5', '7']:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "A, B, C = map(int,input().split())\nif A + B + C == 17  and max(A, B, C) == 7 and min(A, B, C) == 5:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14340.0, "status": "done"}, {"code": "import collections\nimport sys\n\nm = collections.defaultdict(int)\nline = input()\nfor d in line.split():\n    m[d] += 1\nif m['5'] == 2 and m['7'] == 1:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "a, b, c = map(int, input().split())\nif a == 5:\n  if b == 5 and c == 7 or b == 7 and c == 5:\n    print(\"YES\")\n  else:\n    print(\"NO\")\nelif a == 7 and b == c == 5:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "p=list(map(int,input().split()))\np.sort()\nif p==[5,5,7]:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.24, "memory": 14192.0, "status": "done"}, {"code": "from collections import Counter\nN = dict(Counter(map(int,input().split())))\nprint(\"YES\") if (N[5]==2 and N[7]==1) else print(\"NO\")", "passed": true, "time": 0.15, "memory": 14228.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n\ndef __starting_point():\n    # str_list = [map(int, input().split())]\n    # if str_list.count(5) == 2 and str_list.count(7) == 1:\n    #     print('YES')\n    # else:\n    #     print('NO')\n    str_list = list(map(int, input().split()))\n    if sum(str_list) == 17:\n        print('YES')\n    else:\n        print('NO')\n\n\n\n\n\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "queue=list(map(int,input().split()))\nqueue.sort()\nif queue[0]==5 and queue[1]==5 and queue[2]==7:\n  print(\"YES\")\nelse:\n  print(\"NO\")\n", "passed": true, "time": 0.23, "memory": 14028.0, "status": "done"}, {"code": "A, B, C = map(int, input().split())\n \nnum5 = 0\nnum7 = 0\nans = 'NO'\n \nfor num in [A, B, C]:\n  if num == 5:\n    num5+=1\n  elif num == 7:\n    num7+=1\n  else:\n    break\nif num5 ==2 and num7 == 1:\n  ans = 'YES'\nprint(ans)", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "a,b,c=map(int,input().split())\n\nif a*b*c==5*5*7:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14020.0, "status": "done"}, {"code": "Len = list(map(int, input().split()))\n\nif Len.count(5) == 2 and Len.count(7) == 1:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "import math\nfrom datetime import date\n\ndef main():\n\t\t\n\tline = input().split()\n\ta = [int(x) for x in line]\n\ta.sort()\n\n\tif a[0] == 5 and a[1] == 5 and a[2] == 7:\n\t\tprint(\"YES\")\n\telse:\n\t\tprint(\"NO\")\n\t\nmain()\n", "passed": true, "time": 0.16, "memory": 16592.0, "status": "done"}, {"code": "a, b, c = map(int, input().split())\nif a == 5 and b == 5 and c == 7:\n    print('YES')\nelif a == 5 and b == 7 and c == 5:\n    print('YES')\n\nelif a == 7 and b == 5 and c == 5:\n    print('YES')\n\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14032.0, "status": "done"}, {"code": "a = [int(x) for x in input().split()]\na.sort()\nif a == [5,5,7]:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "x = input().split()\nfn = 0\nsn = 0\n \nfor i in range(len(x)):\n  if int(x[i]) == 5:\n    fn += 1\n  elif int(x[i]) == 7:\n    sn += 1\n \nif fn == 2:\n  if sn == 1:\n    print(\"YES\")\n  else:\n    print(\"NO\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.23, "memory": 14036.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n\ndef __starting_point():\n    str_list = list(map(int, input().split()))\n    if sum(str_list) == 17:\n        print('YES')\n    else:\n        print('NO')\n\n__starting_point()", "passed": true, "time": 0.22, "memory": 14068.0, "status": "done"}, {"code": "a = list(map(int, input().split()))\na.sort()\nif a == [5, 5, 7]:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.21, "memory": 14312.0, "status": "done"}, {"code": "def iroha():\n    A, B, C = map(int, input().split())\n    S = A + B + C\n    if S == 17:\n        print(\"YES\")\n    else:\n        print(\"NO\")\n\n\ndef __starting_point():\n    iroha()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14032.0, "status": "done"}, {"code": "a,b,c = map(int,input().split())\nif(a+b+c==17 and (a==5 or a==7) and (b==5 or b==7) and (c==5 or c==7)):\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.35, "memory": 14284.0, "status": "done"}, {"code": "lst = list(map(int, input().split()))\nlst.sort()\n\nif lst[0] == 5 and lst[1] == 5 and lst[2] == 7:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "import sys\ninput = lambda: sys.stdin.readline().rstrip()\n\ndef main():\n    x = list(map(int, input().split()))\n    if x.count(5) == 2 and x.count(7) == 1:\n        print(\"YES\")\n    else:\n        print(\"NO\")\n    \ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "A = list(map(int, input().split()))\nA.sort()\nif A[0] == 5 and A[1] == 5 and A[2] ==7:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "ward = list(map(int, input().split()))\n\nward_sorted = sorted(ward)\n\nif (ward_sorted[0]==5) & (ward_sorted[1]==5) & (ward_sorted[2]==7):\n    print('YES')\nelse:\n    print('NO')\n", "passed": true, "time": 0.15, "memory": 14220.0, "status": "done"}, {"code": "X = list(map(int,input().split()))\n\n\nprint((\"YES\" if X.count(5) == 2 and X.count(7) == 1 else \"NO\"))\n", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "a, b, c = map(int, input().split())\nif(a*b*c == 175):\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.21, "memory": 14060.0, "status": "done"}, {"code": "a,b,c = map(int,input().split())\nabclist = [a,b,c]\nif abclist.count(5) == 2:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "A,B,C = map(int, input().split())\nif A == 5 and B == 5 and C == 7:\n    print(\"YES\")\nelif A == 5 and C == 5 and B == 7:\n    print(\"YES\")\nelif C == 5 and B == 5 and A == 7:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.22, "memory": 14300.0, "status": "done"}, {"code": "a,b,c = input().split()\n\nif (a+b+c).count('5')==2 and (a+b+c).count('7') ==1:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "a = list(map(int,input().split()))\na.sort()\nif a[0]==5 and a[1]==5 and a[2]==7:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.15, "memory": 14212.0, "status": "done"}, {"code": "s=input();print('YNEOS'[s.count('5')!=2or s.count('7')!=1::2])", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "a = [int(x) for x in input().split()]\na.sort()\nif a == [5,5,7]:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14004.0, "status": "done"}, {"code": "a = map(int, input().split())\n\ndef answer(a: list) -> str:\n    a = sorted(a)\n    if a == [5, 5, 7]:\n        return 'YES'\n    else:\n        return 'NO'\n\nprint(answer(a))", "passed": true, "time": 0.14, "memory": 14032.0, "status": "done"}, {"code": "val = map(int, input().split())\n\ncheck_count = 0\nfor i in val:\n    if i not in [5, 7]:\n        print('NO')\n    if i == 5:\n        check_count += 1\n\nif check_count == 2:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "abc = list(input().split())\n\nif abc.count('5') == 2 and abc.count('7') == 1:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "from sys import stdin, stdout\nfrom time import perf_counter\n\nimport sys\nsys.setrecursionlimit(10**9)\nmod = 10**9+7\n\n# import sys\n# sys.stdout = open(\"e:/cp/output.txt\",\"w\")\n# sys.stdin = open(\"e:/cp/input.txt\",\"r\")\nl=sorted(map(int,input().split()))\nprint((\"YES\" if l == [5,5,7] else \"NO\"))\n", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "a= list(map(str,input().split()))\n\nif a.count(\"5\") == 2:\n\tif a.count(\"7\") == 1:\n\t\tprint(\"YES\")\n\t\treturn\n\nprint(\"NO\")", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "print(['YES','NO'][sum(list(map(int,input().split()))) != 17])", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "a = list(map(int,input().split()))\n \na.sort()\nprint('YES' if a[0] == 5 and a[1] == 5 and a[2] == 7 else 'NO')", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "li=list(map(int,input().split()))\n\nif li.count(5)>=2:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "a,b,c = map(int, input().split())\nif(a==5 and b==5):\n\tprint(\"YES\")\nelif(b==5 and c==5):\n\tprint(\"YES\")\nelif(a==5 and c==5):\n\tprint(\"YES\")\nelse:\n\tprint(\"NO\")", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "abc = list(map(int,input().split()))\n\nprint(\"YES\" if abc.count(5) == 2 and abc.count(7) == 1 else \"NO\")", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "inp = input()\n\nif(inp == '5 7 5' or inp == '7 5 5' or inp == '5 5 7'):\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.17, "memory": 14208.0, "status": "done"}, {"code": "L = list(map(int, input().split()))\nL.sort()\nprint(\"YES\") if L == [5,5,7] else print(\"NO\")", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "import sys\nsys.setrecursionlimit(100000)\n\nA = list(map(int, input().split()))\nA.sort()\n\nif A[0] == 5 and A[1] == 5 and A[2] == 7:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "s= list(map(int,input().split()))\n\ns.sort()\n\nif s == [5,5,7]:\n  print('YES')\n  \nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "a, b, c = input().split()\na, b, c = int(a), int(b), int(c)\nif a == 5 and b == 7 and c == 5:\n\tprint(\"YES\")\nelif a == 5 and b == 5 and c == 7:\n\tprint(\"YES\")\nelif a == 7 and b == 5 and c == 5:\n\tprint(\"YES\")\nelse:\n\tprint(\"NO\")", "passed": true, "time": 0.15, "memory": 14256.0, "status": "done"}, {"code": "def atc_042a(input_value: str) -> str:\n    ABC = input_value.split(\" \")\n    if ABC.count(\"5\") == 2 and ABC.count(\"7\") == 1:\n        return \"YES\"\n    return \"NO\"\n\ninput_value_1 = input()\nprint(atc_042a(input_value_1))", "passed": true, "time": 0.27, "memory": 14284.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\na = list(map(int, input().split()))\n\nif 7 == a[0]:\n    if 5 == a[1] and 5 == a[2]:\n        print(\"YES\", end=\"\\n\")\n    else:\n        print(\"NO\", end=\"\\n\")   \n\nelif 5 == a[0]:\n    if (7 == a[1] and 5 == a[2]) or (5 == a[1] and 7 == a[2]):\n        print(\"YES\", end=\"\\n\")\n    else:\n        print(\"NO\", end=\"\\n\")   \nelse:\n    print(\"NO\", end=\"\\n\")", "passed": true, "time": 0.15, "memory": 14096.0, "status": "done"}, {"code": "l = input().split()\nl = list(map(int,l))\nl.sort()\nif l[0]==l[1]==5 and l[2]==7:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.15, "memory": 14144.0, "status": "done"}, {"code": "l_n = list(map(str, input().split()))\n\nprint(('YES' if l_n.count('5') == 2 and l_n.count('7') == 1 else 'NO'))\n", "passed": true, "time": 0.2, "memory": 14304.0, "status": "done"}, {"code": "x = list(map(int, input().split()))\nx.sort()\nf = True\nfor i, e in enumerate(x):\n    tmp = 5\n    if i == 2:\n        tmp = 7\n\n    f &= (tmp == e)\nprint((\"YES\" if f else \"NO\"))\n", "passed": true, "time": 0.22, "memory": 14200.0, "status": "done"}, {"code": "a = list(map(int, input().split()))\na.sort()\n\nif a == [5,5,7]:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "L=[int(i) for i in input().split()]\ncount5=0\ncount7=0\nfor i in range(3):\n    if L[i]==5:\n        count5+=1\n    if L[i]==7:\n        count7+=1\nif count5==2 and count7==1:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.17, "memory": 14284.0, "status": "done"}, {"code": "\"\"\"\nABC042 A \u548c\u98a8\u3044\u308d\u306f\u3061\u3083\u3093\u30a4\u30fc\u30b8\u30fc\nhttps://atcoder.jp/contests/abc042/tasks/abc042_a\n\"\"\"\n\nl = list(map(int, input().split()))\nl5 = l.count(5)\nl7 = l.count(7)\n\nif l5 == 2 and l7 == 1:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.15, "memory": 14164.0, "status": "done"}, {"code": "A, B, C = map(int, input().split())\n\nif sorted([A, B, C]) == [5, 5, 7]:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "# \u6574\u6570\u306e\u5165\u529b\na, b, c = map(int, input().split())\n# \u5408\u8a0817\u3067\u306a\u3044\u3068\u304dNO\u3092\u51fa\u529b\nif not (a+b+c == 17):\n    print(\"NO\")\n    return\n# 7\u3092\u542b\u307e\u306a\u3044\u3068\u304dNO\u3092\u51fa\u529b\nif not 7 in (a, b, c):\n    print(\"NO\")\n    return\n# 5\u3092\u542b\u307e\u306a\u3044\u3068\u304dNO\u3092\u51fa\u529b\u3001\u305d\u308c\u4ee5\u5916\u306fYES\u3092\u51fa\u529b\nif not 5 in (a, b, c):\n    print(\"NO\")\n    return\nelse:\n    print(\"YES\")", "passed": true, "time": 0.17, "memory": 14088.0, "status": "done"}, {"code": "x = input()\nmode = 0\ncount = 0\nfor num in x.split(\" \"):\n  if num == '5':\n    mode+=1\n  elif num =='7':\n    mode+=4\n  count+=1\n\nif mode == 6 and count == 3:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "line = input()\n\nif line == '5 5 7' or line == '5 7 5' or line == '7 5 5':\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14360.0, "status": "done"}, {"code": "print('YNEOS'[''.join(sorted(input().split()))!='557'::2])", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "abc = sorted(list(map(int, input().split())))\nif abc[0] == abc[1] == 5 and abc[2] == 7:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "s=input();z=s.count;print('YNEOS'[z('5')!=2or z('7')!=1::2])", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "A = list(map(int, input().split()))\n\nans = 'NO'\n\nif A.count(5) == 2 and A.count(7) == 1:\n    ans = 'YES'\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "a = list(map(int, input().split()))\nif a.count(5) == 2 and a.count(7) == 1:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "a = input()\nb = a.split()\n\nif b[0]==\"5\" and b[1]==\"5\" and b[2]==\"7\":\n  print(\"YES\")\nelif b[0]==\"5\" and b[1]==\"7\" and b[2]==\"5\":\n  print(\"YES\")\nelif b[0]==\"7\" and b[1]==\"5\" and b[2]==\"5\":\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "a, b, c = map(int, input().split())\niroha = [a, b, c]\nif iroha.count(5) == 2 and iroha.count(7) == 1:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "a = list(map(int,input().split()))\n\na.sort()\n\nif a == [5,5,7]:\n    print('YES')\nelse:\n    print('NO')\n\n", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "w=sorted(input().split())\ncri=[\"5\",\"5\",\"7\"]\nprint(\"YES\" if w==cri else \"NO\")", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "phrases = sorted([int(x) for x in input().split()])\nif phrases[0] == 5 and phrases[1] == 5 and phrases[2] == 7:\n  print('YES')\nelse:\n  print('NO')\n", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "a,b,c = list(map(int,input().split()))\nif a%5!=0 and a%7!=0:\n  print('NO')\nelif b%5!=0 and b%7!=0:\n  print('NO')\nelif c%5!=0 and c%7!=0:\n  print('NO')\nelif a%7==0:\n  if b%5==0 and c%5==0:\n    print('YES')\n  else:\n    print('NO')\nelif b%7==0:\n  if a%5==0 and c%5==0:\n    print('YES')\n  else:\n    print('NO')\nelse:\n  if a%5==0 and b%5==0:\n    print('YES')\n  else:\n    print('NO')\n", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "A, B, C = map(int, input().split())\nif A == 5 and B == 5 and C == 7:\n  print(\"YES\")\nelif A == 5 and B == 7 and C == 5:\n  print(\"YES\")\nelif A == 7 and B == 5 and C == 5:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.23, "memory": 14216.0, "status": "done"}, {"code": "a = list(map(int,input().split()))\nnum_5 = 0\nnum_7 = 0\n\nfor i in a:\n  if i==5:\n    num_5 = num_5+1\n  if i==7:\n    num_7 = num_7+1\n\nif num_5==2 and num_7==1:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "x = input()\nstr_a = x.split(\" \")\narray=[0]*10\nfor s in str_a:\n  array[int(s)]+=1\nif array[5]==2 and array[7]==1:\n  print(\"YES\")\nelse:\n  print(\"NO\")\n", "passed": true, "time": 0.22, "memory": 14148.0, "status": "done"}, {"code": "text = str(input())\ncnt = 0\n\nfor i in text:\n    if i == \"5\":\n        cnt += 1\n    if i == \"7\":\n        cnt += 2\n\nif cnt == 4:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14036.0, "status": "done"}, {"code": "nums = list(map(int, input().split()))\nif nums.count(5) == 2 and nums.count(7) == 1:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "a = list(map(int, input().split()))\na.sort()\nprint(\"YES\") if a == [5, 5, 7] else print(\"NO\")\n", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "a, b, c = map(int, input().split())\niroha = [a, b, c]\nif iroha.count(5) == 2 and iroha.count(7) == 1:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "num=list(map(int,input().split()))\nnum.sort()\nprint(('YES' if num==[5,5,7] else 'NO'))\n", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "li = list(map(int, input().split()))\ncount5 = count7 = 0\nfor l in li:\n    if l == 5:\n        count5 += 1\n    elif l == 7:\n        count7 += 1\n    else:\n        print(\"NO\")\n        return\nif count5 == 2 and count7 == 1:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "arr = list(map(int, input().split()))\n\nif arr.count(5) == 2 and arr.count(7) == 1:\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}]