N = int(input())
xy = [input().split() for i in range(N)]


calculate_yen = lambda xyi: int(xyi[0]) if xyi[1] == 'JPY' else float(xyi[0]) * 380000.0
calculate_total_yen = lambda xy : sum(map(calculate_yen, xy))

total = calculate_total_yen(xy)

print(total) N = int(input()) N int(input()) int input() input input().split() for i in range(N) for i in range(N) i range(N) range N for i in range(N) input().split() ().split () input split xy = [input().split() for i in range(N)] xy [input().split() for i in range(N)] calculate_yen = lambda xyi: int(xyi[0]) if xyi[1] == 'JPY' else float(xyi[0]) * 380000.0 calculate_yen lambda xyi: int(xyi[0]) if xyi[1] == 'JPY' else float(xyi[0]) * 380000.0 int(xyi[0]) if xyi[1] == 'JPY' else float(xyi[0]) * 380000.0 xyi[1] == 'JPY' xyi[1] xyi 1 'JPY' int(xyi[0]) int xyi[0] xyi 0 float(xyi[0]) * 380000.0 float(xyi[0]) float xyi[0] xyi 0 380000.0 xyi calculate_total_yen = lambda xy : sum(map(calculate_yen, xy)) calculate_total_yen lambda xy : sum(map(calculate_yen, xy)) sum(map(calculate_yen, xy)) sum map(calculate_yen, xy) map calculate_yen xy xy total = calculate_total_yen(xy) total calculate_total_yen(xy) calculate_total_yen xy print(total) print total total = calculate_total_yen(xy) calculate_total_yen(xy) total calculate_yen = lambda xyi: int(xyi[0]) if xyi[1] == 'JPY' else float(xyi[0]) * 380000.0 lambda xyi: int(xyi[0]) if xyi[1] == 'JPY' else float(xyi[0]) * 380000.0 calculate_yen calculate_total_yen = lambda xy : sum(map(calculate_yen, xy)) lambda xy : sum(map(calculate_yen, xy)) calculate_total_yen N = int(input()) int(input()) N xy = [input().split() for i in range(N)] [input().split() for i in range(N)] xy
N = int(input())
xy = [input().split() for i in range(N)]


calculate_yen = lambda xyi: int(xyi[0]) if xyi[1] == 'JPY' else float(xyi[0]) * 380000.0
calculate_total_yen = lambda xy : sum(map(calculate_yen, xy))

total = calculate_total_yen(xy)

print(total)
