#Lutece1831. 圆圈

圆圈

Migrated from Lutece 1831 圆圈

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

nn个点,再给一个点AA,保证n+1n+1个点中没有三点共线。

根据数学常识,我们知道平面上33个点可以确定一个圆的位置,那么通过这nn个点 (不包含点AA),显然我们 可以得到Cn3C_n^3个圆

现在,请问这些圆中有多少个圆包含点AA。(数据保证点AA不在任意一个圆上)

Input

输入一个整数nn,表示总共有nn个点

接下来nn行,每行有两个整数xix_iyiy_i,表示点的坐标

最后一行包含两个整数,表示点AA的坐标

Output

输出一个整数,表示符合条件的圆的数量

Samples

4
0 3
3 0
1 1
-1 -2
0 0
3

Note

10%10\%的数据,3n503≤n≤50

30%30\%的数据,3n5003≤n≤500

100%100\%的数据,3n2000xi,yi1053≤n≤2000,|x_i|,|y_i|≤10^5

Resources

Hezhu