Some changes

added a bunch of raw_input() because otherwise if there were letters
involved it would blow up.