def fib(n):
    """Returns a Fibonacii element by its index

    Arguments:
        n {integer} -- An index number

    Returns:
        integer -- A Fibonacci number at given index
    """

    if n > 1:
        return fib(n - 1) + fib(n - 2)
    return n