#PCBSAU0000047. Báo cáo kết quả học tập (Learning Results Report)

Báo cáo kết quả học tập (Learning Results Report)

Learning Results Report

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given full name and scores a,b,ca,b,c weighted 20%, 30%, 50%, compute m=(2a+3b+5c)/10m=(2a+3b+5c)/10 and percentage m/10m/10. Do not round mm prematurely.

Input

Line 1 contains the full name; line 2 contains three whitespace-separated real scores a,b,ca,b,c.

Output

One line name | m | p%, with two decimal digits for both mm and the percentage.

Subtask

  • Subtask 1 — 100 points: 1≤∣name∣≤1001\le |name|\le100; each score is in {0,0.5,1,...,10}.

Example

Input

Nguyen Van An
8 9 10

Output

Nguyen Van An | 9.30 | 93.00%

Explanation

Weighted score (16+27+50)/10 is 9.3; dividing by 10 gives 93.00%.