Skip to content

Instantly share code, notes, and snippets.

@mertcanekiz
Created April 13, 2020 15:50
Show Gist options
  • Save mertcanekiz/3cf8949bae1e4f31ced28870317d8f66 to your computer and use it in GitHub Desktop.
Save mertcanekiz/3cf8949bae1e4f31ced28870317d8f66 to your computer and use it in GitHub Desktop.
a=input
i=int
s=i(a())
d=i(a())
print(f'{i((s+d+1)/2)}\n{i((s-d)/2)}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment