Each of the three lines of the input contains two integers. The i-th line contains integers xi and yi (-109≤xi,yi≤109)− the coordinates of the i-th point. It is guaranteed that all points are distinct.
Output
Print a single number− the minimum possible number of segments of the polyline.
Examples
Input
1 -1
1 1
1 2
Output
1
Input
-1 -1
-1 3
4 3
Output
2
Input
1 1
2 3
3 2
Output
3
输入格式
输入的三行中的每一行都包含两个整数。第 i 条线包含整数 xi 和 yi ( - 109 ≤ xi, yi ≤ 109) — 第 i 点的坐标。保证所有点都是不同的。