
n = int(input())
xu = [list(input().split()) for i in range(n)]
ans = 0
for i in range(n):
  if xu[i][1] == "BTC":
    ans += float(xu[i][0]) * 380000
  else:
    ans += int(xu[i][0])

print(ans) n = int(input()) n int(input()) int input() input list(input().split()) for i in range(n) for i in range(n) i range(n) range n for i in range(n) list(input().split()) list input().split() ().split () input split xu = [list(input().split()) for i in range(n)] xu [list(input().split()) for i in range(n)] ans = 0 ans 0 for i in range(n):
  if xu[i][1] == "BTC":
    ans += float(xu[i][0]) * 380000
  else:
    ans += int(xu[i][0]) i range(n) range n if xu[i][1] == "BTC":
    ans += float(xu[i][0]) * 380000
  else:
    ans += int(xu[i][0]) xu[i][1] == "BTC" xu[i][1] [i] xu i 1 "BTC" ans += float(xu[i][0]) * 380000 ans float(xu[i][0]) * 380000 float(xu[i][0]) float xu[i][0] [i] xu i 0 380000 ans += int(xu[i][0]) ans int(xu[i][0]) int xu[i][0] [i] xu i 0 print(ans) print ans ans += int(xu[i][0]) int(xu[i][0]) ans ans += float(xu[i][0]) * 380000 float(xu[i][0]) * 380000 ans xu = [list(input().split()) for i in range(n)] [list(input().split()) for i in range(n)] xu ans = 0 0 ans n = int(input()) int(input()) n

n = int(input())
xu = [list(input().split()) for i in range(n)]
ans = 0
for i in range(n):
  if xu[i][1] == "BTC":
    ans += float(xu[i][0]) * 380000
  else:
    ans += int(xu[i][0])

print(ans)