Back to tasks
Closer to a hundred
BeginnerPython for kids 路 Lesson 31: Module 2 summary: Decisions
Problem Statement
Read two numbers (they are at different distances from 100). Print the one closer to the number 100.
Input Format
Two whole numbers a and b, each on its own line (-1000 <= a, b <= 1000).
Output Format
One number - the result.
Examples
Example 1
Input
90 104
Output
104
Example 2
Input
120 95
Output
95