N = int(input())
xu = [list(map(str,input().split())) for i in range(N)]
sum = 0
for j in range(N):
	if xu[j][1] == 'JPY':
		sum += float(xu[j][0])
	else:
		sum += float(xu[j][0])*380000
print(sum) N = int(input()) N int(input()) int input() input list(map(str,input().split())) for i in range(N) for i in range(N) i range(N) range N for i in range(N) list(map(str,input().split())) list map(str,input().split()) map str input().split() ().split () input split xu = [list(map(str,input().split())) for i in range(N)] xu [list(map(str,input().split())) for i in range(N)] sum = 0 sum 0 for j in range(N):
	if xu[j][1] == 'JPY':
		sum += float(xu[j][0])
	else:
		sum += float(xu[j][0])*380000 j range(N) range N if xu[j][1] == 'JPY':
		sum += float(xu[j][0])
	else:
		sum += float(xu[j][0])*380000 xu[j][1] == 'JPY' xu[j][1] [j] xu j 1 'JPY' sum += float(xu[j][0]) sum float(xu[j][0]) float xu[j][0] [j] xu j 0 sum += float(xu[j][0])*380000 sum float(xu[j][0])*380000 float(xu[j][0]) float xu[j][0] [j] xu j 0 380000 print(sum) print sum xu = [list(map(str,input().split())) for i in range(N)] [list(map(str,input().split())) for i in range(N)] xu sum += float(xu[j][0])*380000 float(xu[j][0])*380000 sum N = int(input()) int(input()) N sum = 0 0 sum sum += float(xu[j][0]) float(xu[j][0]) sum
N = int(input())
xu = [list(map(str,input().split())) for i in range(N)]
sum = 0
for j in range(N):
	if xu[j][1] == 'JPY':
		sum += float(xu[j][0])
	else:
		sum += float(xu[j][0])*380000
print(sum)