


'''simple docstring'''
def      __snake_case       (       lowerCamelCase_ :				int						):
				'''simple docstring'''




				barcode //= 10  # exclude the last digit
				__magic_name__	  = False
				__magic_name__	  = 0

				# extract and check each digit
				while barcode != 0:
								__magic_name__	  = 1 if checker else 3
								s += mult * (barcode % 10)
								barcode //= 10
								__magic_name__	  = not checker

				return (10 - (s % 10)) % 10




def      __snake_case       (       lowerCamelCase_ :				int						):
				'''simple docstring'''




				return len(str(lowerCamelCase_						)						) == 13 and get_check_digit(lowerCamelCase_						) == barcode % 10




def      __snake_case       (       lowerCamelCase_ :				str						):
				'''simple docstring'''




				if str(lowerCamelCase_						).isalpha():
								__magic_name__	  = F'Barcode \'{barcode}\' has alphabetic characters.'
								raise ValueError(lowerCamelCase_						)
				elif int(lowerCamelCase_						) < 0:
								raise ValueError("The entered barcode has a negative value. Try again."						)
				else:
								return int(lowerCamelCase_						)


if __name__ == "__main__":
						import doctest

						doctest.testmod()
						__magic_name__   :   Optional[int]  							=get_barcode(input('Barcode: ').strip())

						if is_valid(barcode):
												print(F'''\'{barcode}\' is a valid barcode.''')
						else:
												print(F'''\'{barcode}\' is NOT a valid barcode.''')







'''simple docstring'''
def      __snake_case       (       lowerCamelCase_ :				int = 100						):
				'''simple docstring'''




				__magic_name__	  = [[0 for _ in range(lowerCamelCase_						)] for _ in range(m + 1						)]
				for i in range(m + 1						):
								__magic_name__	  = 1

				for n in range(m + 1						):
								for k in range(1	,  lowerCamelCase_						):
												memo[n][k] += memo[n][k - 1]
												if n > k:
																memo[n][k] += memo[n - k - 1][k]

				return memo[m][m - 1] - 1


if __name__ == "__main__":
						print(solution(int(input('Enter a number: ').strip())))



