P11290 [AOJ] Satan Attacks
普及
题目描述

Time Limit: 8 sec / Memory Limit: 64 MB

Example

Input

2
0 0 5 0 10
1 0 6 0 10
1
0.000000 0.000000
6.000000 0.000000

Output

2

输入格式

见题面

输出格式

见题面

样例输入
2 0 0 5 0 10 1 0 6 0 10 1 0.000000 0.000000 6.000000 0.000000
样例输出
2