• + 0 comments
    cube = lambda x: x**3
    
    def fibonacci(n):
        # return a list of fibonacci numbers
        lst = [0, 1]
        
        if n >= 3:
            for _ in range(n-len(lst)):
                lst.append(lst[-1] + lst[-2])          
            return lst
        elif n == 0:
            return []
        else:
            return lst[:n]
                
    if __name__ == '__main__':
        n = int(input())
        print(list(map(cube, fibonacci(n))))