public class Rabbit{
public static void main(String []args){
int num1=1;
int num2=1;
int num=num1+num2;
System.out.print(" "+num1+" "+num2+" "+num);
for(int i=3;i<24;i++){
int num3=num+num2;
num2=num;
num=num3;
System.out.print(" "+num3);
if(i%5==0){
System.out.println();
}
}
}
}