n = int(input())
xu = [list(input().split()) for _ in range(n)]
ans = 0
for x, u in xu:
    ans += float(x)*380000.0 if u=='BTC' else float(x)
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 xu = [list(input().split()) for _ in range(n)] xu [list(input().split()) for _ in range(n)] ans = 0 ans 0 for x, u in xu:
    ans += float(x)*380000.0 if u=='BTC' else float(x) x u xu ans += float(x)*380000.0 if u=='BTC' else float(x) ans float(x)*380000.0 if u=='BTC' else float(x) u=='BTC' u 'BTC' float(x)*380000.0 float(x) float x 380000.0 float(x) float x print(ans) print ans ans = 0 0 ans ans += float(x)*380000.0 if u=='BTC' else float(x) float(x)*380000.0 if u=='BTC' else float(x) ans xu = [list(input().split()) for _ in range(n)] [list(input().split()) for _ in range(n)] xu n = int(input()) int(input()) n
n = int(input())
xu = [list(input().split()) for _ in range(n)]
ans = 0
for x, u in xu:
    ans += float(x)*380000.0 if u=='BTC' else float(x)
print(ans)