Problem1153--求符合给定条件的整数集

1153: 求符合给定条件的整数集

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

给定不超过6的正整数A,考虑从A开始的连续4个数字。请输出所有由它们组成的无重复数字的3位数。

Input

输入在一行中给出A。

Output

输入在一行中给出A。

Sample Input Copy

2

Sample Output Copy

234 235 243 245 253 254
324 325 342 345 352 354
423 425 432 435 452 453
523 524 532 534 542 543

Source/Category