




'''simple docstring'''







import math
import os

import cva
import numpy as np

_lowerCamelCase							:						List[str]								=  255.0






def 		_lowercase		(	lowercase_						,							lowercase_  ):



		'''simple docstring'''







		_snake_case	       =       np.mean((original - contrast) ** 2  )
		if mse == 0:
				return 100

		return 20 * math.logaa(PIXEL_MAX / math.sqrt(lowercase_  )  )






def 		_lowercase		(	):



		'''simple docstring'''







		_snake_case	       =       os.path.dirname(os.path.realpath(lowercase_  )  )
		# Loading images (original image and compressed image)
		_snake_case	       =       cva.imread(os.path.join(lowercase_						,							"image_data/original_image.png"  )  )
		_snake_case	       =       cva.imread(os.path.join(lowercase_						,							"image_data/compressed_image.png"  )						,							1  )

		_snake_case	       =       cva.imread(os.path.join(lowercase_						,							"image_data/PSNR-example-base.png"  )  )
		_snake_case	       =       cva.imread(
		    os.path.join(lowercase_						,							"image_data/PSNR-example-comp-10.jpg"  )						,							1  )

		# Value expected: 29.73dB
		print("-- First Test --"  )
		print(f'''PSNR value is {peak_signal_to_noise_ratio(lowercase_						,							lowercase_  )} dB'''  )

		# # Value expected: 31.53dB (Wikipedia Example)
		print("\n-- Second Test --"  )
		print(f'''PSNR value is {peak_signal_to_noise_ratio(lowercase_						,							lowercase_  )} dB'''  )


if __name__ == "__main__":
						main()











'''simple docstring'''







from __future__ import annotations

_lowerCamelCase							:						Union[str, Any]								=  {1: 1}






def 		_lowercase		(	lowercase_  ):



		'''simple docstring'''







		if n in COLLATZ_SEQUENCE_LENGTHS:
				return COLLATZ_SEQUENCE_LENGTHS[n]
		_snake_case	       =       n // 2 if n % 2 == 0 else 3 * n + 1
		_snake_case	       =       collatz_sequence_length(lowercase_  ) + 1
		_snake_case	       =       sequence_length
		return sequence_length






def 		_lowercase		(	lowercase_ = 1000000  ):



		'''simple docstring'''







		_snake_case	       =       max((collatz_sequence_length(lowercase_  ), i) for i in range(1						,							lowercase_  )  )
		return result[1]


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





