import java.util.ArrayList;
import java.util.Arrays;
class Solution {
public int solution(int[][] dots) {
int answer = 0;
double[] grad = new double[6];
grad[0] = (dots[0][1]-dots[1][1])/(double)(dots[0][0]-dots[1][0]);
grad[1] = (dots[0][1]-dots[2][1])/(double)(dots[0][0]-dots[2][0]);
grad[2] = (dots[0][1]-dots[3][1])/(double)(dots[0][0]-dots[3][0]);
grad[3] = (dots[1][1]-dots[2][1])/(double)(dots[1][0]-dots[2][0]);
grad[4] = (dots[1][1]-dots[3][1])/(double)(dots[1][0]-dots[3][0]);
grad[5] = (dots[2][1]-dots[3][1])/(double)(dots[2][0]-dots[3][0]);
Arrays.sort(grad);
for(int i = 0 ; i <grad.length-1;i++){
if(grad[i]==grad[i+1]){
answer =1;
}
}
return answer;
}
}