<|im_start|>system
You are a helpful AI assistant.<|im_end|>
<|im_start|>user
Write Python code to generate N Tribonacci numbers<|im_end|>
<|im_start|>assistant
```python
def tribonacci(n):
    if n == 0 or n == 1:
        return 0
    if n == 2:
        return 1
    return tribonacci(n-1) + tribonacci(n-2) + tribonacci(n-3)
```<|im_end|>