• + 0 comments
    cube = lambda x: x**3
    
    def fibonacci(n):
        if n <= 0:
            return []
        elif n == 1:
            return [0]
        ret = []
        ret.extend([0, 1])
        while n>2:
            ret.append(ret[-1]+ret[-2])
            n -= 1
        return ret
    
    if __name__ == '__main__':
        n = int(input())
        print(list(map(cube, fibonacci(n))))``