






'''simple docstring'''





def  lowerCamelCase_  (     lowercase__):
 barcode //= 10  # exclude the last digit
 lowerCamelCase__	=  False
 lowerCamelCase__	=  0

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

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






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






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


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 __A				:				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  lowerCamelCase_  (     lowercase__):
 return int(lowercase__) if x - int(lowercase__) <= 0 else int(lowercase__) + 1


if __name__ == "__main__":
 import doctest

 doctest.testmod()

