
'''simple docstring'''

def 					A       ( UpperCamelCase_   :       Optional[Any] = 20 )   ->    int:







			'''simple docstring'''



			try:
						lowerCAmelCase__									=							int(A_ )
			except (TypeError, ValueError):
						raise TypeError("Parameter n must be int or castable to int." )
			if n <= 0:
						raise ValueError("Parameter n must be greater than or equal to one." )
			lowerCAmelCase__									=							0
			while 1:
						i += n * (n - 1)
						lowerCAmelCase__									=							0
						for j in range(2  ,		A_ ):
									if i % j != 0:
												lowerCAmelCase__									=							1
												break
						if nfound == 0:
									if i == 0:
												lowerCAmelCase__									=							1
									return i
			return None


if __name__ == "__main__":
						print(F"{solution() = }")







'''simple docstring'''

def 					A       ( )   ->    str:







			'''simple docstring'''



			lowerCAmelCase__									=							1

			while True:
						if (
						    sorted(str(UpperCamelCase_ ) )
						    == sorted(str(2 * i ) )
						    == sorted(str(3 * i ) )
						    == sorted(str(4 * i ) )
						    == sorted(str(5 * i ) )
						    == sorted(str(6 * i ) )
						):
									return i

						i += 1


if __name__ == "__main__":
		print(solution())





