#A media access control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment.

#The standard (IEEE 802) format for printing MAC-48 addresses in human-friendly form is six groups of two hexadecimal digits (0 to 9 or A to F), 
#separated by hyphens (e.g. 01-23-45-67-89-AB).

#Your task is to check by given string inputString whether it corresponds to MAC-48 address or not.

#Example

#For inputString = "00-1B-63-84-45-E6", the output should be
#isMAC48Address(inputString) = true;
#For inputString = "Z1-1B-63-84-45-E6", the output should be
#isMAC48Address(inputString) = false;
#For inputString = "not a MAC-48 address", the output should be
#isMAC48Address(inputString) = false.

def isMAC48Address(inputString):

	letters = ['A','B','C','D','E','F']

	input = inputString.split('-') 

	long = len(input)

	if long != 6:
		#print("Long != 6")
		#print(input)
		return False

	#Check that each pair is an hexadecimal value
	for i in range(long):
		lista = input[i]
		#Is a two-element value?
		long2 = len(lista)
		#print ('Lista: ',lista)
		if long2 != 2:
			#print("Long elem != 2")
			return False
		for j in range(long2):
			#If it is not a number and not in the letters specified
			if ((lista[j] not in letters) & (lista[j].isnumeric()==False)):
				return False 

	return True