def FIB(n):
    """
    Fibonacci series up to n
    Returns: list of ints = jhta.FIB(n)
    """
    fib_list = []
    a, b = 0, 1
    while a < n:
        fib_list.append(a)
        a, b = b, a + b
    return fib_list
