# Find R2

**Under construction**

Still being built. Things may change

Time limit 1s, Memory limit 128 MB

**Summary**

Given R1 and the average S of two integers, compute and print the other integer R2.

- Level: Easy, 1 of 10
- Topics: [Math](/mini/problems?topic=math), [Implementation](/mini/problems?topic=implementation)
- Solved: No attempts yet

## Problem

The average `S` of two integers `R1` and `R2` is `(R1 + R2) / 2`.

Given `R1` and the average `S`, find the second number `R2`.

## Input

The first line contains two integers `R1` and `S`, separated by a space.

Each number is between `-1000` and `1000`, inclusive.

## Output

Print `R2` on the first line.

## Examples (2)

**Example 1**

Input

```
11 15

```

Expected output

```
19

```

**Example 2**

Input

```
4 3

```

Expected output

```
2

```
