Consecutive Again
Time Limit: 1 sec
The Problem
Mr. Professor who is famous for printing numbers is showing his another technique. But before that he wants to know are you familiar with consecutive numbers. Consecutive numbers are the numbers which follow each other in order. Such as 1, 2, 3 or 1, 2, 3, 4, 5 etc.
His technique is if a number N is given you have to write N lines and its 3 consecutives in given manner.
Given number, 3
Result
1 2 3
2 3 4
3 4 5
The Input
The input file contains several lines. Each line contains a single integer N (0 <= N <= 25). Input is terminated by EOF.
The Output
For each line of input print the numbers and for 0 print “0” in a separate line.
Sample Input
3
5
Sample Output
1 2 3
2 3 4
3 4 5
1 2 3
2 3 4
3 4 5
4 5 6
5 6 7
Problem Setter: Samia Safa Ahmed