Help me in solving RECUR05 problem

My issue

Wrong Answer: Failed on a hidden test case

My code

def fib(n):
    #Write your code here
    if n < 0:
        return "Fibonacci sequence is not defined for negative numbers."
    elif n == 0:
        return 0
    elif n == 1:
        return 1
    else:
        return fib(n-1) + fib(n-2)
n = int(input())
print(fib(n))

Learning course: Design and Analysis of Algorithms
Problem Link: Fibonacci Series in Design and Analysis of Algorithms