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

#GL0000079. Tìm hai số có BCNN nằm trong đoạn (LCM Problem)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Tìm hai số có BCNN nằm trong đoạn (LCM Problem)

LCM Problem

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

Given integers l<rl<r, find x,yx,y satisfying l≤x<y≤rl\le x<y\le r and l≤lcm⁡(x,y)≤rl\le\operatorname{lcm}(x,y)\le r. Any valid pair is accepted. If no such pair exists, print -1 -1.

Input

One line containing integers ll and rr.

Output

Print a valid pair x,yx,y, or -1 -1 if impossible.

Subtasks

  • Subtask 1 (20 points): 1≤l<r≤1001\le l<r\le100.

  • Subtask 2 (30 points): 1≤l<r≤1061\le l<r\le10^6.

  • Subtask 3 (50 points): 1≤l<r≤1091\le l<r\le10^9.

Examples

Input

2 4

Output

2 4

Explanation

2≤2<4≤42\le2<4\le4 and lcm⁡(2,4)=4\operatorname{lcm}(2,4)=4 lies in [2,4][2,4], so the pair is valid.