public static void main(String[] args) throws IOException {
StreamTokenizer cin = new StreamTokenizer(
new BufferedReader(new InputStreamReader(System.in)));
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
cin.nextToken();
int n = (int)cin.nval;
if(n == 0) { out.println("0"); return; }
if(n == 1) { out.println("1"); return; }
int[] f = new int[n];
f[0] = 0; f[1] = 1;
out.println("0");
out.println("1");
for(int i = 2; i < n; ++i) {
f = f[i-1]+f[i-2];
out.println(f);
}