n = int(input())
x = [list(input().split()) for _ in range(n)]
BTC = 380000.0
YEN = 1
ans = 0
for i in x:
    if i[1] =='BTC':
        ans += float(i[0]) * BTC
    else:
        ans += float(i[0]) * YEN
print(ans) n = int(input()) n int(input()) int input() input list(input().split()) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) list(input().split()) list input().split() ().split () input split x = [list(input().split()) for _ in range(n)] x [list(input().split()) for _ in range(n)] BTC = 380000.0 BTC 380000.0 YEN = 1 YEN 1 ans = 0 ans 0 for i in x:
    if i[1] =='BTC':
        ans += float(i[0]) * BTC
    else:
        ans += float(i[0]) * YEN i x if i[1] =='BTC':
        ans += float(i[0]) * BTC
    else:
        ans += float(i[0]) * YEN i[1] =='BTC' i[1] i 1 'BTC' ans += float(i[0]) * BTC ans float(i[0]) * BTC float(i[0]) float i[0] i 0 BTC ans += float(i[0]) * YEN ans float(i[0]) * YEN float(i[0]) float i[0] i 0 YEN print(ans) print ans n = int(input()) int(input()) n ans += float(i[0]) * BTC float(i[0]) * BTC ans ans += float(i[0]) * YEN float(i[0]) * YEN ans YEN = 1 1 YEN ans = 0 0 ans x = [list(input().split()) for _ in range(n)] [list(input().split()) for _ in range(n)] x BTC = 380000.0 380000.0 BTC
n = int(input())
x = [list(input().split()) for _ in range(n)]
BTC = 380000.0
YEN = 1
ans = 0
for i in x:
    if i[1] =='BTC':
        ans += float(i[0]) * BTC
    else:
        ans += float(i[0]) * YEN
print(ans)