Subtask 1 (30%): 1 ≤ A ≤ B ≤ 1000000

Subtask 2 (40%): A and B will be in the form A = 10K, B = 10K+1-1, where 0 ≤ K ≤ 14. (Eg: A = 100, B = 999)

Subtask 3 (30%): No further restrictions.

Subtask 4 (0%): Sample Testcases

Do note that for correctly outputting one of the two numbers you will receive 50% of the score.