Mock CCC '18 Contest 2 J1 - An Arithmetic Problem

View as PDF

Submit solution


Points: 3 (partial)
Time limit: 5.0s
Memory limit: 1G

Problem type

You are given an arithmetic expression a+b=c. Determine if it is true or false.

Constraints

1 \le a,b,c \le 9

In a batch of tests worth 1 mark, the answer is always True.

In a potentially disjoint batch of tests worth 1 mark, the answer is always False.

Input Specification

The first line contains a single line of the form a + b = c, where each of a, b, and c are positive digits.

Output Specification

If the statement is true, print True on a single line.

Otherwise, print False on a single line.

Sample Input 1

1 + 1 = 2

Sample Output 1

True

Sample Input 2

1 + 1 = 3

Sample Output 2

False

Comments

There are no comments at the moment.