#include #include #include #include #include #include #include int main(){ int n; int a,b; float slope; float slope1; int check=0; scanf("%d",&n); for(int a0 = 0; a0 < n; a0++){ int x; int y; scanf("%d %d",&x,&y); if(a0==1) {slope=(float)(a-x)/(float)(b-y); } if(a0>1) {slope1=(float)(a-x)/(float)(b-y); if(slope1!=slope) {printf("NO");check=1; break;}} a=x; b=y; } if(check==0) {printf("YES");} return 0; }