14891 - Simple GeoGuesser   

Description

Given a target point on a 2D plane, you are also given two additional points: your guess and your opponent's guess about that point. Your task is to determine who is closer to the target point based on the Euclidean distance.

Hint: you can slightly modify how you calculate Euclidean distance to better solve the problem.

 

Constraints

  • -109 <= x, y <= 109
  • All coordinates are integers.

 

Input

The input consists of one line that has 6 numbers in sequence:

  • Target point: X Yt
  • Your guess:  Xa Ya
  • Opponent's Guess: XYb

 

 

Output

  • Output "WIN" with '\n' if your guess is closer to the target than your opponent's guess.

  • Output "DRAW" with '\n' if both guesses are at the exact same distance from the target.

  • Output "LOSE" with '\n' if your opponent's guess is closer to the target than yours.

Sample Input  Download

Sample Output  Download

Tags




Discuss