Farz0l1x

Untitled

Oct 8th, 2022
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. a, b = map(int, input().split())
  2. if max(a, b) % 2 == 0:
  3.     c = max(a, b)
  4. else:
  5.     c = max(a, b) + 1
  6. print(max(a, c) // 2, min(a, b))
Advertisement
Add Comment
Please, Sign In to add comment