






"""simple docstring"""
def 				snake_case      (   A__ = 1_00_00_00						):
			UpperCAmelCase_     : List[str]			     =					1
			UpperCAmelCase_     : Union[str, Any]			     =					1
			UpperCAmelCase_     : Tuple			     =					{1: 1}

			for inputa in range(2	,A__						):
						UpperCAmelCase_     : Dict			     =					0
						UpperCAmelCase_     : Dict			     =					inputa

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

						if inputa not in counters:
									UpperCAmelCase_     : List[Any]			     =					counter

						if counter > pre_counter:
									UpperCAmelCase_     : List[str]			     =					inputa
									UpperCAmelCase_     : Dict			     =					counter
			return largest_number


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











"""simple docstring"""
from torch import nn

def 				snake_case      (   A__						):
			if act_fn in ["swish", "silu"]:
						return nn.SiLU()
			elif act_fn == "mish":
						return nn.Mish()
			elif act_fn == "gelu":
						return nn.GELU()
			else:
						raise ValueError(F"""Unsupported activation function: {act_fn}"""						)



