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 JAVA):

Solution:
import java.util.Scanner;


public class fourth_june_ankit {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

//            System.out.println(str);
//            if(str.length()>3)
//                break;
//            str="";
//        }
//        System.out.println("i=>"+i);
//        System.out.println(str1);
//    }
        int ar[]={
            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
        };
        int n=ar.length;
        Scanner s=new Scanner(System.in);
        String str=s.next();
        
        for (int i = 0; i < n; i++) 
        {
            String str1=""+ar[i];
            int count=0;
            String str2=str;
            int index=0;
            for (int j = 0; j < str1.length(); j++) 
            {
                if(str2.indexOf(str1.charAt(j),index)!=-1)
                {
                    count++;
//                    str2.replace(str1.charAt(j),'x');
                    index=str2.indexOf(str1.charAt(j),index)+1;
                    //System.out.println("--->"+str1+"  --->"+count+"  -->"+index);
                }
            }
            if(count==str1.length())
                {
                    System.out.println("YES");
                    System.out.println(ar[i]);
                    return;
                }
            
        }
        System.out.println("NO");
    
}
}