age1 = int(input('Enter the age of your friend: '))
age2 = int(input('Enter your age: '))
if age1 > age2:
print(age1, f'\nна {age1-age2}')
elif age1 == age2:
print('Ваш возраст одинаковый')
else:
print(age2, f'\nна {age2-age1}')
age1 = int(input('Enter the age of your friend: '))
age2 = int(input('Enter your age: '))
if age1 > age2:
print(age1, f'\nна {age1-age2}')
elif age1 == age2:
print('Ваш возраст одинаковый')
else:
print(age2, f'\nна {age2-age1}')