Checks
시간 제한1초메모리 제한1024 MB
1조 달러 미만의 금액을 수표에 쓰는 미국식 영문 표기로 바꾸고, 소수 부분은 100분의 몇으로 적는다.
문제
Checks contain their value written both numerically and as words. Write a program to read a positive dollar amount less than a trillion, with two decimal places, and display the amount in words.
Here is the output for 64325.28:
SIXTY FOUR THOUSAND THREE HUNDRED TWENTY FIVE AND TWENTY EIGHT/100 DOLLARS
Notice that the word "AND" only appears before the hundredths. Spelling counts! Traditional American counting rules apply.
입력
A single line containing a dollar amount less than a trillion dollars.
출력
A single line with the word representation of the number exactly as patterned here.