import std.stdio; import std.string; import std.conv; import std.algorithm; void main() { foreach(input; stdin.byLine) { janken(input.chomp.to!string).writeln; } } string janken(string input) { auto battle = input.split(" ").map!(to!int); switch ((battle[1] - battle[0] + 3)%3) { case 0: return "Drew"; break; case 1: return "Won"; break; default: return "Lost"; break; } }