change the "$" to "¥"
the test cases changed to fit the new logic