GCD and LCM#1244

GCD and LCM

1 second
64 megabytes
Very easy

Given two positive integers and . Find the number of pairs of numbers , for which is the \mathrm{GCD}(P, Q), and is the \mathrm{LCM}(P, Q).

Input

A single line contains two positive integers and (A < 10^5, B \leq 10^6).

Output

Output a single number — the required number of pairs.

Examples

Example 1

Loading
Loading