def fibonacci_sequence():
  count = 1
  first_num = 1
  second_num = 1
  while (len(str(first_num)) != 1000):
    result = first_num + second_num
    first_num = second_num
    second_num = result
    count += 1
  return count

print fibonacci_sequence()

9ed20af2678e07383d4fe7c4981196ef8e81248c
def fibonacci_sequence():
  count = 1
  first_num = 1
  second_num = 1
  while (len(str(first_num)) != 1000):
    result = first_num + second_num
    first_num = second_num
    second_num = result
    count += 1
  return count

print fibonacci_sequence()
