PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#GL0000041. Tìm cặp số khi biết UCLN và BCNN (GCD LCM)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Tìm cặp số khi biết UCLN và BCNN (GCD LCM)

GCD LCM

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

Given positive integers G,LG,L, find positive integers a,ba,b such that gcd⁡(a,b)=G\gcd(a,b)=G and lcm⁡(a,b)=L\operatorname{lcm}(a,b)=L. Minimize aa. Print a,ba,b, or -1 if no pair exists.

Input

One line contains G,LG,L.

Output

Print a,ba,b or -1.

Subtasks

  • Subtask 1 (20 points): 1≤G,L≤1001 \le G,L \le 100
  • Subtask 2 (30 points): 1≤G,L≤1061 \le G,L \le 10^{6}
  • Subtask 3 (50 points): 1≤G,L≤1091 \le G,L \le 10^{9}

Examples

Input

3 12

Output

3 12

Explanation

Since 1212 is divisible by 33, the pair (3,12)(3,12) works and minimizes aa.