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); auto result = battle[1] - battle[0]; switch (result) { case 0: return "Drew"; break; case 1: return "Won"; break; case -1: return "Lost"; break; case -2: return "Won"; break; case 2: return "Lost"; break; default: return "Invalid"; break; } }