Under construction

Still being built. Things may change

A+B−CA + B - C

Time limit1sMemory limit1024 MB

Summary
Given integers A, B, and C, print A+B-C once with them as numbers and once with them as JavaScript strings.
Level

Easy2 of 10

Topics
Implementation
Solved
No attempts yet

Problem

In JavaScript, the operators ++ and −- work as ordinary addition and subtraction on numbers. On strings, ++ concatenates the two strings, and −- converts both strings to numbers and then subtracts.

Given AA, BB, and CC as numbers or as strings, compute A+B−CA+B-C.

Input

The first line contains an integer AA. (1≤A≤1 000)(1 \le A \le 1\,000)

The second line contains an integer BB. (1≤B≤1 000)(1 \le B \le 1\,000)

The third line contains an integer CC. (1≤C≤1 000)(1 \le C \le 1\,000)

Every given number is a positive integer without a leading zero.

Output

On the first line, print A+B−CA+B-C when AA, BB, and CC are treated as numbers.

On the second line, print A+B−CA+B-C when AA, BB, and CC are treated as strings.

Hint

For both numbers and strings, A+B−CA+B-C evaluates ++ first and then −-.

Examples1

  1. Example 1

    Input
    3
    4
    5
    
    Expected output
    2
    29