CodeGolf - Barry the messy developer #2 This is a follow-up of
  CodeGolf - Ignore the noise #1
  the only problem being that Barry has made things even worse for us. Lets see what happened


Update

I've added code to create random input and expected output because I'm not that good at explaining what I want, and I guess that sometimes words are more misleading than code (isn't that always?)

Description

Another method in Dumb Corp's API gives us the current price a provider is giving us for an item, the optimal price we would be making maximum sales with and the tendency of that price compared to previous prices as a string UP or DOWN. We need to decide if we should remove the item from the shop or wait.

Input

80,90,UP
150,100,DOWN
65,65,UP
1618,1618,DOWN
840,1200,DOWN
54,12,UP
30,1,UP


For a huge input sample demo with expected output, put the following code (js) in your browsers console and it should output valid random input for testing.

var output = "";
var result = "";

for(i=10;i--;){
  var currentPrice = Math.floor(Math.random() * 10000) + 1;
  var optimalPrice = Math.floor(Math.random() * 10000) + 1;
  var tendency = Math.round(Math.random())?"UP":"DOWN";
  var tresult = "WAIT\n";

  if((currentPrice &gt; optimalPrice &amp;&amp; tendency == "UP") ||
     (currentPrice &lt; optimalPrice &amp;&amp; tendency == "DOWN")){
       tresult = "STOP\n";
     }

  output +=currentPrice+","+optimalPrice+","+tendency+"\n";
  result +=tresult;
}
console.log(output);
console.log(result);


As always we will have a variable G as our input, however if your language makes it easier for you to simply read the input, that's also fine. The format is constant, and follow the format int,int,string

Desired Output

You're the brains of this operation, Barry should be doing this calculation on the server, but we can't count on him as you should know. You need to output WAIT if the tendency is towards the optimal price, or STOP if the tendency is towards loses.

In other words, with the 80,90,UP as input, we know that there is a product with current price of 80 and optimal price of 90 with a tendency to rise up, so we should WAIT. On the other hand, 840,1200,DOWN means the product price is going down and our optimal price is higher, so we should stop losses by outputting STOP.

If the two prices are identical, output WAIT regardless of the tendency.

Each product in a new line, single word per line:

WAIT
WAIT
WAIT
WAIT
STOP
STOP
STOP


Please, when possible, provide a way of verifying that your code is working since we can't all know just by looking at the syntax. As always, use as few characters as possible and remember that you're not competing against other languages necessarily, your competing against languages with similar syntax
Perl, 35

#!perl -pl
/,/;$_=$`-$'&amp;&amp;$`&gt;$'^/D/?STOP:WAIT


Test me.