N = int(input())
moneys = [tuple(map(str, input().split())) for _ in range(N)]
rate = 380000

total = 0
for money in moneys:
    x, u = money
    x = float(x)
    if u == 'JPY':
        total += x
    else:
        total += x * rate

print(total)
 N = int(input()) N int(input()) int input() input tuple(map(str, input().split())) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) tuple(map(str, input().split())) tuple map(str, input().split()) map str input().split() ().split () input split moneys = [tuple(map(str, input().split())) for _ in range(N)] moneys [tuple(map(str, input().split())) for _ in range(N)] rate = 380000 rate 380000 total = 0 total 0 for money in moneys:
    x, u = money
    x = float(x)
    if u == 'JPY':
        total += x
    else:
        total += x * rate money moneys x, u = money x money u x = float(x) x float(x) float x if u == 'JPY':
        total += x
    else:
        total += x * rate u == 'JPY' u 'JPY' total += x total x total += x * rate total x * rate x rate print(total) print total total = 0 0 total total += x * rate x * rate total rate = 380000 380000 rate x = float(x) float(x) x N = int(input()) int(input()) N moneys = [tuple(map(str, input().split())) for _ in range(N)] [tuple(map(str, input().split())) for _ in range(N)] moneys x, u = money money x total += x x total u = money money u
N = int(input())
moneys = [tuple(map(str, input().split())) for _ in range(N)]
rate = 380000

total = 0
for money in moneys:
    x, u = money
    x = float(x)
    if u == 'JPY':
        total += x
    else:
        total += x * rate

print(total)

