# Process stock market data
string = "    Nov 16\tNASDAQ\t 2634.93\t+0.63%\n"
string = string.strip()
words = string.split("\t")
value = words[2].strip()
change = words[-1]
if change[0] == "+":
    direction = "up"
else:
    direction = "down"
change = change[1:]
change = change.replace("%","")
print "NASDAQ",direction,"by",change,"percent"
