#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<long long> vll;
typedef vector<vector<long long>> vvll;
typedef pair<int,int> pii;
typedef pair<long long, int> pli;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define sz(x) (x).size()

ll mod = 998244353;

ll gcd(ll a, ll b){
  if (a%b == 0)return(b);
  else return(gcd(b, a%b));
}

ll inv(ll x){
  ll res = 1;
  ll k = mod - 2;
  ll y = x;
  while(k){
    if(k&1)res = (res*y)%mod;
    y = (y*y) % mod;
    k /= 2;
  }
  return res;
}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

  int n;
  cin >> n;
  vector<pii> ps(n);
  rep(i,n){
    cin >> ps[i].first >> ps[i].second;
  }
  string ret = "No";
  for(int i = 0;i < n;i++){
    for(int j = i+1;j < n;j++){
      for(int k = j+1;k < n;k++){
        int dx1 = ps[i].first - ps[j].first;
        int dy1 = ps[i].second - ps[j].second;
        int dx2 = ps[j].first - ps[k].first;
        int dy2 = ps[j].second - ps[k].second;
        if(dx1*dy2 == dx2*dy1)ret = "Yes";
      }
    }
  }
  cout << ret << endl;
}
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, ll> Pil;

int N;
const int MAX_N = 110;
double x[MAX_N], y[MAX_N];
double eps = 1.0e-9;

int main() {
    cin >> N;
    for (int i = 0; i < N; i++) {
        cin >> x[i] >> y[i];
    }

    bool ans = false;

    for (int i = 0; i < N-2; i++) {
        for (int j = i+1; j < N-1; j++) {
            for (int k = j+1; k < N; k++) {
                if (x[i] == x[j] && x[j] == x[k] && x[k] == x[i]) {
                    ans = true;
                }
            }
        }
    }
    

    for (int i = 0; i < N-2; i++) {
        for (int j = i+1; j < N-1; j++) {
            double a = (y[j] - y[i]) / (x[j] - x[i]);
            for (int k = j+1; k < N; k++) {
                double y_check = a*(x[k] - x[i]) + y[i];
                if (abs(y_check - y[k]) < eps) {
                    ans = true;
                }
            }
        }
    }

    cout << (ans ? "Yes" : "No") << endl;

    return 0;
}