





def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase = 1_000_000					):
       _UpperCamelCase              =						1
       _UpperCamelCase              =						1
       _UpperCamelCase              =						{1: 1}

       for inputa in range(2    ,       lowerCAmelCase					):
              _UpperCamelCase              =						0
              _UpperCamelCase              =						inputa

              while True:
                     if number in counters:
                            counter += counters[number]
                            break
                     if number % 2 == 0:
                            number //= 2
                            counter += 1
                     else:
                            _UpperCamelCase              =						(3 * number) + 1
                            counter += 1

              if inputa not in counters:
                     _UpperCamelCase              =						counter

              if counter > pre_counter:
                     _UpperCamelCase              =						inputa
                     _UpperCamelCase              =						counter
       return largest_number


if __name__ == "__main__":
   print(solution(int(input().strip())))













def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase					):
       _UpperCamelCase              =						0
       for ch in input_str:
              _UpperCamelCase              =						ord(lowerCAmelCase					)
              _UpperCamelCase              =						pow(2    ,       lowerCAmelCase					)

              # If we already turned on bit for current character's unicode
              if bitmap >> ch_unicode & 1 == 1:
                     return False
              bitmap |= ch_bit_index_on
       return True


if __name__ == "__main__":
       import doctest

       doctest.testmod()






