Skip to content

Instantly share code, notes, and snippets.

@modos
Created October 7, 2022 08:52
Show Gist options
  • Save modos/3bd17e2b00fc5596e437a293fe561e88 to your computer and use it in GitHub Desktop.
Save modos/3bd17e2b00fc5596e437a293fe561e88 to your computer and use it in GitHub Desktop.
تعمیر دیوار
x, y = input().split()
n = int(input())
dx, dy = input().split()
fx = int(x) + n
fy = int(y) - n
if int(x) <= int(dx) <= int(fx) and int(y) >= int(dy) >= int(fy):
print("Mahdi")
else:
print("Parsa")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment