N = int(input())
price = [list(input().split()) for _ in range(N)]
count = [int(i[0]) if i[1] == 'JPY' else float(i[0])*380000.0 for i in price]
print(sum(count)) 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 price = [list(input().split()) for _ in range(N)] price [list(input().split()) for _ in range(N)] int(i[0]) if i[1] == 'JPY' else float(i[0])*380000.0 for i in price for i in price i price for i in price int(i[0]) if i[1] == 'JPY' else float(i[0])*380000.0 i[1] == 'JPY' i[1] i 1 'JPY' int(i[0]) int i[0] i 0 float(i[0])*380000.0 float(i[0]) float i[0] i 0 380000.0 count = [int(i[0]) if i[1] == 'JPY' else float(i[0])*380000.0 for i in price] count [int(i[0]) if i[1] == 'JPY' else float(i[0])*380000.0 for i in price] print(sum(count)) print sum(count) sum count price = [list(input().split()) for _ in range(N)] [list(input().split()) for _ in range(N)] price count = [int(i[0]) if i[1] == 'JPY' else float(i[0])*380000.0 for i in price] [int(i[0]) if i[1] == 'JPY' else float(i[0])*380000.0 for i in price] count N = int(input()) int(input()) N
N = int(input())
price = [list(input().split()) for _ in range(N)]
count = [int(i[0]) if i[1] == 'JPY' else float(i[0])*380000.0 for i in price]
print(sum(count))