def elegxos_teleiou_arithmou(arithmos):
	athroisma_diairetwn = 0

	for i in range(1, arithmos + 1):
		if arithmos % i == 0:
			athroisma_diairetwn += i

			if arithmos == athroisma_diairetwn/2:
				return True
				else:
					return False

				if __name__ == "__main__":
			try:
				num1 = int(input("Dose ton prwto arithmo:"))
				num2 = int(input("Dose ton deytero arithmo:"))

			if elegxos_teleiou_arithmou(num1):
				print(f"o arithmos{num1} teleios")
			else:
				print(f"o arithmos {num1} den einai teleios"}

			if elegxos_teleiou_arithmou(num2):
				print(f"o arithmos{num2} teleios")
			else:
				print(f"o arithmos {num2} den einai teleios"}

		 except ValueError:
		 	print("sfalma :eisagete mono akeraioys")


		
