Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ACM-ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

B. Nastya Studies Informatics

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputToday on Informatics class Nastya learned about GCD and LCM (see links below). Nastya is very intelligent, so she solved all the tasks momentarily and now suggests you to solve one of them as well.

We define a pair of integers (*a*, *b*) good, if *GCD*(*a*, *b*) = *x* and *LCM*(*a*, *b*) = *y*, where *GCD*(*a*, *b*) denotes the greatest common divisor of *a* and *b*, and *LCM*(*a*, *b*) denotes the least common multiple of *a* and *b*.

You are given two integers *x* and *y*. You are to find the number of good pairs of integers (*a*, *b*) such that *l* ≤ *a*, *b* ≤ *r*. Note that pairs (*a*, *b*) and (*b*, *a*) are considered different if *a* ≠ *b*.

Input

The only line contains four integers *l*, *r*, *x*, *y* (1 ≤ *l* ≤ *r* ≤ 10^{9}, 1 ≤ *x* ≤ *y* ≤ 10^{9}).

Output

In the only line print the only integer — the answer for the problem.

Examples

Input

1 2 1 2

Output

2

Input

1 12 1 12

Output

4

Input

50 100 3 30

Output

0

Note

In the first example there are two suitable good pairs of integers (*a*, *b*): (1, 2) and (2, 1).

In the second example there are four suitable good pairs of integers (*a*, *b*): (1, 12), (12, 1), (3, 4) and (4, 3).

In the third example there are good pairs of integers, for example, (3, 30), but none of them fits the condition *l* ≤ *a*, *b* ≤ *r*.

Codeforces (c) Copyright 2010-2018 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Sep/24/2018 03:56:38 (d1).

Desktop version, switch to mobile version.

User lists

Name |
---|