Answered step by step
Verified Expert Solution
Question
1 Approved Answer
pleasePolycarp has guessed three positive integers a , b and c . He keeps these numbers in secret, but he writes down four numbers on
pleasePolycarp has guessed three positive integers and He keeps these numbers in secret, but he writes down four numbers on a board
in arbitrary order their pairwise sums three numbers and sum of all three numbers one number So there are four numbers on a
board in random order: and
You have to guess three numbers and using given numbers. Print three guessed integers in any order.
Pay attention that some given numbers and can be equal it is also possible that
Input
The only line of the input contains four positive integers numbers written on a board in random order. It is
guaranteed that the answer exists for the given number
Output
Print such positive integers and that four numbers written on a board are values and written in some
order. Print and in any order. If there are several answers, you can print any. It is guaranteed that the answer exists. in cnput
The only line of the input contains four positive integers numbers written on a board in random order. It is
guaranteed that the answer exists for the given number
Output
Print such positive integers and that four numbers written on a board are values and written in some
order. Print and in any order. If there are several answers, you can print any. It is guaranteed that the answer exists.
Examnles
input
output
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started