You are given n points on Cartesian plane. Every point is a lattice point (i. e. both of its coordinates are integers), and all points are distinct.

You may draw two straight lines (not necessarily distinct). Is it possible to do this in such a way that every point lies on at least one of these lines?

Input

The first line contains one integer n (1 ≤ n ≤ 105) — the number of points you are given.

Then n lines follow, each line containing two integers xi and yi (|xi|, |yi| ≤ 109)— coordinates of i-th point. All n points are distinct.

Output

If it is possible to draw two straight lines in such a way that each of given points belongs to at least one of these lines, print YES. Otherwise, print NO.

Examples

Input

5
0 0
0 1
1 1
1 -1
2 2


Output

YES


Input

5
0 0
1 0
2 1
1 1
2 3


Output

NO

Note

In the first example it is possible to draw two lines, the one containing the points 1, 3 and 5, and another one containing two remaining points.

<image>
import java.io.*;
import java.util.stream.Stream;

/**
 * @author madi.sagimbekov
 */
public class C961D {

    private static BufferedReader in;
    private static BufferedWriter out;

    public static void main(String[] args) throws IOException {
        open();
        int n = readInt();
        long[][] c = new long[n][2];

        for (int i = 0; i < n; i++) {
            c[i] = readLongs();
        }

        if (n <= 4) {
            out.write("YES");
        } else {
            boolean ans = false;
            for (int i = 0; i < 100; i++) {
                int aa = (int)(Math.random() * n - 1);
                int bb = (int)(Math.random() * n - 1);
                if (aa == bb) {
                    continue;
                }
                ans = check(c, n, aa, bb);
                if (ans) {
                    out.write("YES");
                    break;
                }
            }

            if (!ans) {
                out.write("NO");
            }

        }
        close();
    }

    private static boolean check(long[][] c, int n, int a, int b) {
        boolean[] used = new boolean[n];

        long x1 = c[a][0];
        long y1 = c[a][1];
        long x2 = c[b][0];
        long y2 = c[b][1];

        used[a] = true;
        used[b] = true;

        long A = y1 - y2;
        long B = x1 - x2;
        long C = x1 * y2 - y1 * x2;

        int cnt = 2;
        for (int i = 0; i < n; i++) {
            if (!used[i]) {
                long x = c[i][0];
                long y = c[i][1];
                if (A * x + C == B * y) {
                    used[i] = true;
                    cnt++;
                }
            }
        }

        if (n - cnt <= 2) {
            return true;
        } else {
            long[] p = new long[4];
            int ind = 0;
            for (int i = 0; i < n; i++) {
                if (!used[i]) {
                    used[i] = true;
                    p[ind++] = c[i][0];
                    p[ind++] = c[i][1];
                    if (ind == 4) {
                        break;
                    }
                }
            }

            long x11 = p[0];
            long y11 = p[1];
            long x22 = p[2];
            long y22 = p[3];

            long AA = y11 - y22;
            long BB = x11 - x22;
            long CC = x11 * y22 - y11 * x22;

            for (int i = 0; i < n; i++) {
                if (!used[i]) {
                    long x = c[i][0];
                    long y = c[i][1];
                    if (BB * y == AA * x + CC) {
                        used[i] = true;
                    }
                }
            }

            boolean yes = true;
            for (int i = 0; i < n; i++) {
                if (!used[i]) {
                    yes = false;
                    break;
                }
            }

            return yes;
        }
    }

    private static int[] readInts() throws IOException {
        return Stream.of(in.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
    }

    private static int readInt() throws IOException {
        return Integer.parseInt(in.readLine());
    }

    private static long[] readLongs() throws IOException {
        return Stream.of(in.readLine().split(" ")).mapToLong(Long::parseLong).toArray();
    }

    private static long readLong() throws IOException {
        return Long.parseLong(in.readLine());
    }

    private static double[] readDoubles() throws IOException {
        return Stream.of(in.readLine().split(" ")).mapToDouble(Double::parseDouble).toArray();
    }

    private static double readDouble() throws IOException {
        return Double.parseDouble(in.readLine());
    }

    private static String readString() throws IOException {
        return in.readLine();
    }

    private static void open() {
        in = new BufferedReader(new InputStreamReader(System.in));
        out = new BufferedWriter(new OutputStreamWriter((System.out)));
    }

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

}
