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

#GL0000044. Dựng cặp có tổng UCLN và BCNN cho trước (EhAb AnD gCd)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Dựng cặp có tổng UCLN và BCNN cho trước (EhAb AnD gCd)

EhAb AnD gCd

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

Given integer xx, find any positive integers a,ba,b satisfying $$\gcd(a,b)+\operatorname{lcm}(a,b)=x.$$ A solution is guaranteed. Any valid ordered pair is accepted.

Input

One line contains xx.

Output

Print positive integers a,ba,b separated by one space.

Subtasks

  • Subtask 1 (20 points): 2≤x≤1002 \le x \le 100; 1≤a,b≤1091 \le a,b \le 10^{9}
  • Subtask 2 (30 points): 2≤x≤1052 \le x \le 10^{5}; 1≤a,b≤1091 \le a,b \le 10^{9}
  • Subtask 3 (50 points): 2≤x≤1092 \le x \le 10^{9}; 1≤a,b≤1091 \le a,b \le 10^{9}

Examples

Input

14

Output

1 13

Explanation

For (1,13)(1,13), the GCD is 11 and the LCM is 1313, giving total 1414. Other valid pairs are accepted.