100.0% (70/70)

55.7% (113/203)

# Description

In college, many grades are converted into Grade Point Average (GPA) as a reference for further studies.
For each course, the GPA conversion rule is as follows:

 Rank Basic GPA Adjustment Adjustment GPA A 4.0 + +0.3 B 3.0 0 0.0 C 2.0 - -0.3 D 1.0

The total GPA is the sum of Basic GPA and Adjustment GPA.

Given the rank and adjustment, can you calculate the corresponding GPA?

# Input Format

Rank and Adjustment separated by a space

# Output Format

The corresponding GPA with one digit after the decimal point.
If the GPA is 4.0, you must print 4.0.
4 or 4.00 is incorrect.
Also, if the GPA is 3.7, you must print 3.7, too.

A 0

4.0

# Problem Source

No. Testdata Range Score
1 0~11 100

# Testdata and Limits

No. Time Limit (ms) Memory Limit (KiB) Output Limit (KiB) Subtasks
0 1000 65536 65536 1
1 1000 65536 65536 1
2 1000 65536 65536 1
3 1000 65536 65536 1
4 1000 65536 65536 1
5 1000 65536 65536 1
6 1000 65536 65536 1
7 1000 65536 65536 1
8 1000 65536 65536 1
9 1000 65536 65536 1
10 1000 65536 65536 1
11 1000 65536 65536 1