Problem: Mishka is decorating the Christmas tree. He has got three garlands, and all of them will be put on the tree. After that Mishka will switch these garlands on.

When a garland is switched on, it periodically changes its state — sometimes it is lit, sometimes not. Formally, if i-th garland is switched on during x-th second, then it is lit only during seconds x, x + ki, x + 2ki, x + 3ki and so on.

Mishka wants to switch on the garlands in such a way that during each second after switching the garlands on there would be at least one lit garland. Formally, Mishka wants to choose three integers x1, x2 and x3 (not necessarily distinct) so that he will switch on the first garland during x1-th second, the second one — during x2-th second, and the third one — during x3-th second, respectively, and during each second starting from max(x1, x2, x3) at least one garland will be lit.

Help Mishka by telling him if it is possible to do this!

Input

The first line contains three integers k1, k2 and k3 (1 ≤ ki ≤ 1500) — time intervals of the garlands.

Output

If Mishka can choose moments of time to switch on the garlands in such a way that each second after switching the garlands on at least one garland will be lit, print YES.

Otherwise, print NO.

Examples

Input

2 2 3


Output

YES


Input

4 2 3


Output

NO

Note

In the first example Mishka can choose x1 = 1, x2 = 2, x3 = 1. The first garland will be lit during seconds 1, 3, 5, 7, ..., the second — 2, 4, 6, 8, ..., which already cover all the seconds after the 2-nd one. It doesn't even matter what x3 is chosen. Our choice will lead third to be lit during seconds 1, 4, 7, 10, ..., though.

In the second example there is no way to choose such moments of time, there always be some seconds when no garland is lit.

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;

public class Solution {

    public static void main(String[] args) throws Exception {
        MyReader reader = new MyReader(System.in);
//        MyReader reader = new MyReader(new FileInputStream("input.txt"));
        MyWriter writer = new MyWriter(System.out);
        new Solution().run(reader, writer);
        writer.close();
    }

    private void run(MyReader reader, MyWriter writer) throws IOException, InterruptedException {
        int[] a = reader.nextIntArray(3);
        boolean b = false;
        b |= Arrays.stream(a).min().getAsInt() == 1;
        b |= Arrays.stream(a).filter(e -> e == 2).count() >= 2;
        b |= Arrays.stream(a).filter(e -> e == 3).count() == 3;
        b |= Arrays.stream(a).min().getAsInt() == 2 && Arrays.stream(a).filter(e -> e == 4).count() == 2;
        writer.print(b ? "YES" : "NO");
    }

        static class MyReader {

            final BufferedInputStream in;
            final int bufSize = 1 << 16;
            final byte buf[] = new byte[bufSize];
            int i = bufSize;
            int k = bufSize;
            boolean end = false;
            final StringBuilder str = new StringBuilder();

            MyReader(InputStream in) {
                this.in = new BufferedInputStream(in, bufSize);
            }

            int nextInt() throws IOException {
                return (int) nextLong();
            }

            int[] nextIntArray(int n) throws IOException {
                int[] m = new int[n];
                for (int i = 0; i < n; i++) {
                    m[i] = nextInt();
                }
                return m;
            }

            int[][] nextIntMatrix(int n, int m) throws IOException {
                int[][] a = new int[n][0];
                for (int j = 0; j < n; j++) {
                    a[j] = nextIntArray(m);
                }
                return a;
            }

            long nextLong() throws IOException {
                int c;
                long x = 0;
                boolean sign = true;
                while ((c = nextChar()) <= 32) ;
                if (c == '-') {
                    sign = false;
                    c = nextChar();
                }
                if (c == '+') {
                    c = nextChar();
                }
                while (c >= '0') {
                    x = x * 10 + (c - '0');
                    c = nextChar();
                }
                return sign ? x : -x;
            }

            long[] nextLongArray(int n) throws IOException {
                long[] m = new long[n];
                for (int i = 0; i < n; i++) {
                    m[i] = nextLong();
                }
                return m;
            }

            int nextChar() throws IOException {
                if (i == k) {
                    k = in.read(buf, 0, bufSize);
                    i = 0;
                }
                return i >= k ? -1 : buf[i++];
            }

            String nextString() throws IOException {
                if (end) {
                    return null;
                }
                str.setLength(0);
                int c;
                while ((c = nextChar()) <= 32 && c != -1) ;
                if (c == -1) {
                    end = true;
                    return null;
                }
                while (c > 32) {
                    str.append((char) c);
                    c = nextChar();
                }
                return str.toString();
            }

            String nextLine() throws IOException {
                if (end) {
                    return null;
                }
                str.setLength(0);
                int c = nextChar();
                while (c != '\n' && c != '\r' && c != -1) {
                    str.append((char) c);
                    c = nextChar();
                }
                if (c == -1) {
                    end = true;
                    if (str.length() == 0) {
                        return null;
                    }
                }
                if (c == '\r') {
                    nextChar();
                }
                return str.toString();
            }

            char[] nextCharArray() throws IOException {
                return nextString().toCharArray();
            }

            char[][] nextCharMatrix(int n) throws IOException {
                char[][] a = new char[n][0];
                for (int i = 0; i < n; i++) {
                    a[i] = nextCharArray();
                }
                return a;
            }
        }

        static class MyWriter {

            final BufferedOutputStream out;
            final int bufSize = 1 << 16;
            final byte buf[] = new byte[bufSize];
            int i = 0;
            final byte c[] = new byte[30];
            static final String newLine = System.getProperty("line.separator");

            MyWriter(OutputStream out) {
                this.out = new BufferedOutputStream(out, bufSize);
            }

            void print(long x) throws IOException {
                int j = 0;
                if (i + 30 >= bufSize) {
                    flush();
                }
                if (x < 0) {
                    buf[i++] = (byte) ('-');
                    x = -x;
                }
                while (j == 0 || x != 0) {
                    c[j++] = (byte) (x % 10 + '0');
                    x /= 10;
                }
                while (j-- > 0)
                    buf[i++] = c[j];
            }

            void print(int[] m) throws IOException {
                for (int a : m) {
                    print(a);
                    print(' ');
                }
            }

            void print(long[] m) throws IOException {
                for (long a : m) {
                    print(a);
                    print(' ');
                }
            }

            void print(String s) throws IOException {
                for (int i = 0; i < s.length(); i++) {
                    print(s.charAt(i));
                }
            }

            void print(char x) throws IOException {
                if (i == bufSize) {
                    flush();
                }
                buf[i++] = (byte) x;
            }

            void print(char[] m) throws IOException {
                for (char c : m) {
                    print(c);
                }
            }

            void println(String s) throws IOException {
                print(s);
                println();
            }

            void println() throws IOException {
                print(newLine);
            }

            void flush() throws IOException {
                out.write(buf, 0, i);
                out.flush();
                i = 0;
            }

            void close() throws IOException {
                flush();
                out.close();
            }
        }
    }