#C4756. Game Outcome Determination

    ID: 48329 Type: Default 1000ms 256MiB

Game Outcome Determination

Game Outcome Determination

You are given a game played on a rectangular field of size \(m \times n\). The outcome of the game is determined solely by the parity of the dimensions \(m\) and \(n\). Specifically:

  • If both \(m\) and \(n\) are odd, then Dasha wins.
  • If both \(m\) and \(n\) are even, the game results in a draw.
  • If one is even and the other is odd, then Masha wins.

Your task is to write a program that, given \(m\) and \(n\) via standard input, prints the game outcome on standard output. Ensure your solution reads from stdin and writes to stdout.

inputFormat

The input consists of a single line containing two space-separated integers (m) and (n) (both greater than 0) representing the dimensions of the game field.

outputFormat

Print a single word denoting the outcome: "Dasha", "Draw", or "Masha".## sample

2 2
Draw