logo AlgoBeat OnlineJudge
登录 注册

#206243. [CERC2016] Easy Equation

内存限制:512 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Given an integer greater than , it is possible to prove that there are infinitely many triples of positive integers that satisfy the following equation:

Given positive integers and , find arbitrary triples that all satisfy the equation. Furthermore, all integers should be different positive integers with at most decimal digits each.

输入格式

The first line contains two integers and — the constant k in the equation and the target number of triples.

输出格式

Output lines. The -th line should contain three space separated integers , and with at most digits each — the -th of the solutions you found.

样例

样例输入 1

2 8

样例输出 1

1 2 6
3 10 24
12 35 88
15 28 84
4 5 18
14 33 90
40 104 273
21 60 152

样例输入 2

3 3

样例输出 2

1 3 12
8 21 87
44 165 615