• + 0 comments
    cube = lambda x: pow(x, 3)
    
    def fibonacci(n):
        if n == 0:
            return []
        elif n == 1:
            return [0]
        elif n == 2:
            return [0, 1]
        else:
            fib_seq = [0, 1]
            for i in range(2, n):
                fib_seq.append(fib_seq[-1] + fib_seq[-2])
            return fib_seq
    
    if __name__ == '__main__':
        n = int(input())
        print(list(map(cube, fibonacci(n))))