Wolf Trails#1412

Wolf Trails

2 seconds
64 megabytes
Medium

In the wild Jungle, alongside the Seeonee wolf pack, there are many other tribes of the Free People. Each pack has its own traditions, leader, and Council Rock. The Jungle is divided into equal squares, with each tribe assigned specific squares for hunting. Occasionally, wolves from one pack may attend the council of another pack.

To avoid conflicts when entering another pack's territory, the council of elders, made up of pack leaders, decided to establish safe paths between Council Rocks. Their decision is as follows:

Write a program to calculate the number of different ways to lay trails between the Council Rocks.

Input

The first line contains two numbers: (1 \le n \le 80) and (0 \le k \le 10^{18}) — the number of Council Rocks and the maximum allowable trail length. The following lines contain the coordinates of the Council Rocks (all coordinates are between and 10^{18}).

Output

Output the number of different ways to lay trails between the Council Rocks.

Examples

Example 1

Loading
Loading