import java.io.*;
class nmp_66_M1_2{
public static void main(String[] args) throws Exception{
int batas = 0; int x = 0;
int embuh = 0; int embuh1 = 0;
int temp;

DataInputStream dis = new
DataInputStream(System.in);
System.out.print(”Loop maximal : “);
batas = Integer.parseInt(dis .readLine());

System.out.println(”Deret Fibonacci : “);
while(x < batas){
if(x == 0){
embuh = 0; temp = 0;
} else if(x == 1){
embuh1 = 1; temp = 1;
} else {
temp = embuh + embuh1;
embuh = embuh1;
embuh1= temp;
}
System.out.print(temp + ” “);
x = x + 1;
}
System.out.println();
}
}