#P5712. Little B's Apple Sentence

    ID: 18940 Type: Default 1000ms 256MiB

Little B's Apple Sentence

Little B's Apple Sentence

Little B loves apples. Today, she ate (x) apples. In her English class, she learned the word apple and wants to make a sentence using it. Construct a sentence following these rules: if she ate exactly one apple, output "Today, I ate 1 apple."; if she did not eat any apple, replace the number 1 with 0 (i.e., output "Today, I ate 0 apple."); if she ate more than one apple, remember to add an 's' to "apple" to form its plural.

inputFormat

A single integer (x) representing the number of apples Little B ate today.

outputFormat

Print a sentence exactly following the rules specified. For example, if (x = 1), output "Today, I ate 1 apple."; if (x = 0), output "Today, I ate 0 apple."; if (x > 1), output "Today, I ate x apples." with (x) replaced by the input value.

sample

0
Today, I ate 0 apple.