A higher resolution is required to access the IDE

- 133

## Statement

## Goal

There areThen the

Your task is to determine how many apples will remain on the tree.

**NOTE**

"Down" direction is vector (

Input

**Line 1**Two integers

`N`and

`i`– the number of apples and index of the falling apple

**Next N lines**Four space-separated integers

`X`,

`Y`,

`Z`and

`R`– position and radius of the apple

Output

A single integer – number of remaining apples

Constraints

1 ≤

0 ≤

-1000000 ≤

1 ≤

`N`< 1000 ≤

`i`< N-1000000 ≤

`x`,`y`,`z`≤ 10000001 ≤

`r`< 1000000Example

Input

2 0 0 0 100 10 0 0 200 15

Output

1

A higher resolution is required to access the IDE

Online Participants

### Channels

### Direct Messages

No private conversations