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

#GL0000113. Tách thành hai số không nguyên tố cùng nhau (Non-coprime Split)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Tách thành hai số không nguyên tố cùng nhau (Non-coprime Split)

Non-coprime Split

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

Given an integer interval [l,r][l,r], find positive integers a,ba,b such that l≤a+b≤rl\le a+b\le r and gcd⁡(a,b)>1\gcd(a,b)>1. Any valid pair is accepted. Print -1 if none exists.

Input

One line containing l,rl,r.

Output

Print -1 if impossible; otherwise print two integers a,ba,b.

Subtasks

  • Subtask 1 (20 points): 1≤l≤r≤1001\le l\le r\le100.
  • Subtask 2 (30 points): 1≤l≤r≤1051\le l\le r\le10^5.
  • Subtask 3 (50 points): 1≤l≤r≤1071\le l\le r\le10^7.

Examples

Input

11 15

Output

2 10

Explanation

2+10=122+10=12 lies in [11,15][11,15], and gcd⁡(2,10)=2>1\gcd(2,10)=2>1.