import java.util.Scanner;
public class fibonacci {
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int max=scan.nextInt();
int[] a=new int[max];
a[0]=1;
a[1]=1;
System.out.print(a[0]+" "+a[1]+" ");
for(int n=2;n<max;n++){
a[n]=a[n-1]+a[n-2];
System.out.print(a[n]+" ");
}
}
}