Training Site

# Tomatoes

Input: Standard Input (stdin)
Output: Standard Output (stdout)
Memory limit: 32 megabytes
Time limit: 1.0 seconds

Beth’s Mum and Dad are rural market gardeners. In the summer they grow tomatoes and take them into the big markets in town to sell. However, if Beth wants to she’s allowed to collect the less perfect tomatoes and sell them for $1 per packet of 4 tomatoes at the gate. (Well, at least until the local council finds out and serves her a big ridiculous fine.) Your job is to determine the amount of money Beth makes based on her sales in a day. Note: she is a modern lass with EFTPOS so receiving 5 cents is possible. ## Input There is one line containing an integer $T$, the number of tomatoes sold on the day in question. ## Output Print a $ sign followed immediately by the amount of money Beth earned in that day. If there are zero dollars, print a 0 in the dollars position.

For all subtasks, $T$ will be in the range $0 \leq T \leq 1000000$.

• Subtask 1 ($60\%$): $T$ is guaranteed to be a multiple of 4.
• Subtask 2 ($20\%$): $T$ is guaranteed to be a multiple of 2.
• Subtask 3 ($20\%$): $T$ may be any integer in the given range.

Dealing with real numbers and rounding can be awful. But the modulus operator could be used instead of using float variable types. (eg. in Python, 75 % 4 == 3 because $3$ is the whole number remainder after dividing $75$ by $4$)

• ### Sample Input 1

100



• ### Sample Input 3

75