public class Main
{
private static int fac(int n)
{
if (n <= 2)
return 1;
else
return fac(n - 1) + fac(n - 2);
}
public static void main(String args[])
{
System.out.println(fac(1));
System.out.println(fac(2));
System.out.println(fac(3));
System.out.println(fac(4));
System.out.println(fac(5));
System.out.println(fac(6));
}
}