Problem: You are given a non-negative integer n, its decimal representation consists of at most 100 digits and doesn't contain leading zeroes.

Your task is to determine if it is possible in this case to remove some of the digits (possibly not remove any digit at all) so that the result contains at least one digit, forms a non-negative integer, doesn't have leading zeroes and is divisible by 8. After the removing, it is forbidden to rearrange the digits.

If a solution exists, you should print it.

Input

The single line of the input contains a non-negative integer n. The representation of number n doesn't contain any leading zeroes and its length doesn't exceed 100 digits. 

Output

Print "NO" (without quotes), if there is no such way to remove some digits from number n. 

Otherwise, print "YES" in the first line and the resulting number after removing digits from number n in the second line. The printed number must be divisible by 8.

If there are multiple possible answers, you may print any of them.

Examples

Input

3454


Output

YES
344


Input

10


Output

YES
0


Input

111111


Output

NO

Solution (in PYTHON):

Solution:
# for i in xrange(1, 1000):
#   if i%8 == 0:
#     a, b, c = '%03d' % i
#     print '"%d",' % i,

import re
A = [r".*0.*", r".*8.*", r".*1.*6.*", r".*2.*4.*", r".*3.*2.*", r".*4.*0.*", r".*4.*8.*", r".*5.*6.*", r".*6.*4.*", r".*7.*2.*", r".*8.*0.*", r".*8.*8.*", r".*9.*6.*", r".*1.*0.*4.*", r".*1.*1.*2.*", r".*1.*2.*0.*", r".*1.*2.*8.*", r".*1.*3.*6.*", r".*1.*4.*4.*", r".*1.*5.*2.*", r".*1.*6.*0.*", r".*1.*6.*8.*", r".*1.*7.*6.*", r".*1.*8.*4.*", r".*1.*9.*2.*", r".*2.*0.*0.*", r".*2.*0.*8.*", r".*2.*1.*6.*", r".*2.*2.*4.*", r".*2.*3.*2.*", r".*2.*4.*0.*", r".*2.*4.*8.*", r".*2.*5.*6.*", r".*2.*6.*4.*", r".*2.*7.*2.*", r".*2.*8.*0.*", r".*2.*8.*8.*", r".*2.*9.*6.*", r".*3.*0.*4.*", r".*3.*1.*2.*", r".*3.*2.*0.*", r".*3.*2.*8.*", r".*3.*3.*6.*", r".*3.*4.*4.*", r".*3.*5.*2.*", r".*3.*6.*0.*", r".*3.*6.*8.*", r".*3.*7.*6.*", r".*3.*8.*4.*", r".*3.*9.*2.*", r".*4.*0.*0.*", r".*4.*0.*8.*", r".*4.*1.*6.*", r".*4.*2.*4.*", r".*4.*3.*2.*", r".*4.*4.*0.*", r".*4.*4.*8.*", r".*4.*5.*6.*", r".*4.*6.*4.*", r".*4.*7.*2.*", r".*4.*8.*0.*", r".*4.*8.*8.*", r".*4.*9.*6.*", r".*5.*0.*4.*", r".*5.*1.*2.*", r".*5.*2.*0.*", r".*5.*2.*8.*", r".*5.*3.*6.*", r".*5.*4.*4.*", r".*5.*5.*2.*", r".*5.*6.*0.*", r".*5.*6.*8.*", r".*5.*7.*6.*", r".*5.*8.*4.*", r".*5.*9.*2.*", r".*6.*0.*0.*", r".*6.*0.*8.*", r".*6.*1.*6.*", r".*6.*2.*4.*", r".*6.*3.*2.*", r".*6.*4.*0.*", r".*6.*4.*8.*", r".*6.*5.*6.*", r".*6.*6.*4.*", r".*6.*7.*2.*", r".*6.*8.*0.*", r".*6.*8.*8.*", r".*6.*9.*6.*", r".*7.*0.*4.*", r".*7.*1.*2.*", r".*7.*2.*0.*", r".*7.*2.*8.*", r".*7.*3.*6.*", r".*7.*4.*4.*", r".*7.*5.*2.*", r".*7.*6.*0.*", r".*7.*6.*8.*", r".*7.*7.*6.*", r".*7.*8.*4.*", r".*7.*9.*2.*", r".*8.*0.*0.*", r".*8.*0.*8.*", r".*8.*1.*6.*", r".*8.*2.*4.*", r".*8.*3.*2.*", r".*8.*4.*0.*", r".*8.*4.*8.*", r".*8.*5.*6.*", r".*8.*6.*4.*", r".*8.*7.*2.*", r".*8.*8.*0.*", r".*8.*8.*8.*", r".*8.*9.*6.*", r".*9.*0.*4.*", r".*9.*1.*2.*", r".*9.*2.*0.*", r".*9.*2.*8.*", r".*9.*3.*6.*", r".*9.*4.*4.*", r".*9.*5.*2.*", r".*9.*6.*0.*", r".*9.*6.*8.*", r".*9.*7.*6.*", r".*9.*8.*4.*", r".*9.*9.*2.*"]
B = ["0", "8", "16", "24", "32", "40", "48", "56", "64", "72", "80", "88", "96", "104", "112", "120", "128", "136", "144", "152", "160", "168", "176", "184", "192", "200", "208", "216", "224", "232", "240", "248", "256", "264", "272", "280", "288", "296", "304", "312", "320", "328", "336", "344", "352", "360", "368", "376", "384", "392", "400", "408", "416", "424", "432", "440", "448", "456", "464", "472", "480", "488", "496", "504", "512", "520", "528", "536", "544", "552", "560", "568", "576", "584", "592", "600", "608", "616", "624", "632", "640", "648", "656", "664", "672", "680", "688", "696", "704", "712", "720", "728", "736", "744", "752", "760", "768", "776", "784", "792", "800", "808", "816", "824", "832", "840", "848", "856", "864", "872", "880", "888", "896", "904", "912", "920", "928", "936", "944", "952", "960", "968", "976", "984", "992",]
def main():
  i = raw_input()
  for k, j in enumerate(A):
    if re.match(j, i):
      print 'YES'
      print B[k]
      return
  print 'NO'

if __name__ == '__main__':
  main()