'''
Alafim=
Meot=
Asarot=
Ahadot=
'''

num=4567
Alafim=num//1000
Meot=num%1000//100
Asarot=num%100//10
Ahadot=num%10//1
print("Alafim: " + str(Alafim) + "\nMeot: " + str(Meot) + "\nAsarot: " + str(Asarot) + "\nAhadot:" + str(Ahadot))