def fib() t1 = 1 t2 = 1 t3 = 2 while (true) t3 = t2 + t1 t1 = t2 t2 = t3 if (t3.to_s().length >= 1000) return t3 end end end puts t3