import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in =new Scanner(System.in);
int a=0;
int b=1;
int n=in.nextInt();
for(int i=1;i<=n;i++){
System.out.print(a+" ");
int c=a+b;
a=b;
b=c;
}
}
}