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

#GL0000105. Kiến tạo BCNN theo số chữ số (LCM)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Kiến tạo BCNN theo số chữ số (LCM)

LCM

Source: AtCoder

Version: Phuoc Hung OJ Extended

Problem Statement

Given positive integers A1,A2,A3A_1,A_2,A_3, determine whether there exist positive integers X1,X2X_1,X_2 such that X1X_1 has exactly A1A_1 decimal digits, X2X_2 has exactly A2A_2 decimal digits, and lcm⁡(X1,X2)\operatorname{lcm}(X_1,X_2) has exactly A3A_3 decimal digits. If possible, print Yes and any valid pair; otherwise print No.

Input

One line contains three integers A1,A2,A3A_1,A_2,A_3.

Output

If impossible, print No. Otherwise print Yes on the first line and X1,X2X_1,X_2 on the second line.

Subtasks

  • Subtask 1 (20 points): 1≤A1,A2,A3≤51\le A_1,A_2,A_3\le5.
  • Subtask 2 (30 points): 1≤A1,A2,A3≤101\le A_1,A_2,A_3\le10.
  • Subtask 3 (50 points): 1≤A1,A2,A3≤171\le A_1,A_2,A_3\le17.

Examples

Input

4 3 5

Output

Yes
3125 100

Explanation

For example, X1=3125X_1=3125 and X2=100X_2=100 have 44 and 33 digits, and their LCM is 1250012500, which has exactly 55 digits.