def F(k): if k > 1: return F(k-1) + F(k-2) else: return k
def F(n): a, b = 0, 1 for _ in range(n): a, b = b, (a + b) return a