Editorial for Mock CCC '20 Contest 1 J1 - A Rage Tree Problem
Submitting an official solution before solving the problem yourself is a bannable offence.
For 5 marks, print the first integer in the input twice.
For 10 marks, print the first integer in the input, then print the last integer in the input.
For full credit, it suffices to compare each number with the other three. You can also use expressions such as ~\min(\min(a, b), \min(c, d))~ and ~\max(\max(a, b), \max(c, d))~.