/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.mycompany.ore;

/**
 *
 * @author szymc
 */
public class Main {
    static int a(int n){
        if (n == 1)
            return 1;
        else
            if (n == 2)
                return 2;
            else
                if (n == 3)
                    return 10;
                else
                    if (n % 2 == 0)
                        return a(n-1) + a(n-2);
                    else
                        return a(n-1) % 7;
     
    };
    public static void main(String[] args) {
        int n = 24;
        for (int i = 1; i <=5; i++)
            System.out.println(a(i));
    }
}
