cm = float(input())
m = cm / 100
km = cm / 10000
dm = cm / 10
print("м = ", m)
print("км = ", km)
print("дм = ", dm)
cm = float(input())
m = cm / 100
km = cm / 10000
dm = cm / 10
print("м = ", m)
print("км = ", km)
print("дм = ", dm)