N = int(input())
xu = [list(map(str,input().split())) for _ in range(N)]

ans = 0

for x,u in xu:
  if u == 'BTC':
    ans += float(x)*380000.0
  else:
    ans += float(x)

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

ans = 0

for x,u in xu:
  if u == 'BTC':
    ans += float(x)*380000.0
  else:
    ans += float(x)

print(ans)