def fibonacci_recursive(num):
    """ Calculate fibonacci number """
    if num == 0:
        return 0
    elif num in {1, 2}:
        return 1
    else:
        return fibonacci_recursive(num-1) + fibonacci_recursive(num - 2)