A, b = map(int, input().split()) c=b
b = (b + a * 12) * 25.4
mm = round (float ((( b )) / 1000) , 2)
print (a , end = "")
print ("'" , end = "")
print (c , end = "")
print ('"' , end = "")
print (' = ' , end = "")
print ( mm , end = "")
print ('m.', end = "")
переведить программу на с++