GFSS Christmas Challenge P1 - Arithmetic Operators
View as PDFPeter the reindeer is preparing for the NPCO (North Pole Computing Olympiad) and comes over the following problem:
You are given two integers
and
. Output
,
, and
on separate lines, respectively.
Peter believes he can output  successfully but requires help with the others. Could you help Peter solve his problem?
Input Specification
The first line contains  
.
The second line contains  
.
Output Specification
Output the value of , 
, and 
 on three separate lines. For clarification, refer to the sample output below.
Sample Input 1
2
3
Sample Output 1
5
-1
6
Explanation
Each line of output represents one of .
- The first line is 
.
 - The second line is 
.
 - The third line is 
.
 
Comments