A=input() if A[0] in ['U','u']: RMB=(eval(A[3:]))*6.78 print("RMB{:.2f}".format(RMB)) else: USD=(eval(A[3:]))/6.78 print("USD{:.2f}".format(USD))