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.BufferedReader;
// import java.io.FileInputStream;
// import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.*;

import static java.lang.Math.*;
import static java.util.Arrays.copyOf;
import static java.util.Arrays.fill;
import static java.util.Arrays.sort;
import static java.util.Map.Entry;
import static java.util.Collections.reverseOrder;
import static java.util.Collections.sort;

public class Main {
    FastScanner in;
    PrintWriter out;

    long[] x, y;
    int n;

    private void solve() throws IOException {
        n = in.nextInt();
        if (n < 5) {
            out.println("YES");
            return;
        }

        x = new long[n];
        y = new long[n];
        for (int i = 0; i < n; i++) {
            x[i] = in.nextLong();
            y[i] = in.nextLong();
        }

        used = new boolean[n];

        if (check(0, 1)) {
            out.println("YES");
            return;
        }

        if (check(0, 2)) {
            out.println("YES");
            return;
        }

        if (check(1, 2)) {
            out.println("YES");
            return;
        }

        out.println("NO");
    }

    boolean[] used;

    private boolean check(int i, int j) {
        fill(used, false);

        long A = y[i] - y[j], B = x[j] - x[i], C = y[j] * x[i] - y[i] * x[j];
        for (int k = 0; k < n; k++) {
            used[k] = A * x[k] + B * y[k] + C == 0;
        }

        int cnt = 0;
        for (int k = 0; k < n; k++) {
            if (!used[k])
                cnt++;
        }

        if (cnt < 3)
            return true;

        int q = -1, w = -1;
        for (int k = 0; k < n; k++) {
            if (!used[k]) {
                used[k] = true;
                q = k;
                break;
            }
        }
        for (int k = 0; k < n; k++) {
            if (!used[k]) {
                used[k] = true;
                w = k;
                break;
            }
        }

        A = y[q] - y[w];
        B = x[w] - x[q];
        C = y[w] * x[q] - y[q] * x[w];
        for (int k = 0; k < n; k++) {
            if (!used[k]) {
                used[k] = A * x[k] + B * y[k] + C == 0;
            }
        }

        for (int k = 0; k < n; k++) {
            if (!used[k])
                return false;
        }
        return true;
    }

    class FastScanner {
        StringTokenizer st;
        BufferedReader br;

        FastScanner(InputStream s) {
            br = new BufferedReader(new InputStreamReader(s));
        }

        String next() throws IOException {
            while (st == null || !st.hasMoreTokens())
                st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }

        boolean hasNext() throws IOException {
            return br.ready() || (st != null && st.hasMoreTokens());
        }

        int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        double nextDouble() throws IOException {
            return Double.parseDouble(next().replace(',', '.'));
        }

        String nextLine() throws IOException {
            return br.readLine();
        }

        boolean hasNextLine() throws IOException {
            return br.ready();
        }
    }

    private void run() throws IOException {
        in = new FastScanner(System.in); // new FastScanner(new FileInputStream(".in"));
        out = new PrintWriter(System.out); // new PrintWriter(new FileOutputStream(".out"));

        solve();

        out.flush();
        out.close();
    }

    public static void main(String[] args) throws IOException {
        new Main().run();
    }
}
