Clamp value between lo and hi. Return lo if x<lo, hi if x>hi, else x.
Implement this function:
def clamp(x: int, lo: int, hi: int) -> int:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: x, lo, hi.
Input
5
1
10
Output
5