Problems
10004 - Simple Math
SUBMIT PROBLEM

Simple Math

Time Limit: 1 sec

 

The Problem

Eric is facing a problem to solve the following equation:

 

A =X2 + Y2 – Z2

 

 Can you please help Eric to solve this equation?

 

The Input

Input file contains a series of lines. Each line consists of three integers X (0<X<100), Y (0<Y<100) and Z (0<Z<100). Input is terminated by EOF.

 

The Output

For each line of input, you have to print the value of the equation in a separate line.

 

Sample Input

4 4 3

5 6 7

 

Sample Output

23

12

 

 

 

[School Level]

Inter School & College Programming Contest (ISCPC) 2015 

Problem Setter: Mahbubur Rahman