AtCoder Beginner Contest 179
翻译中…
Problem Statement
翻译中…
In the Kingdom of AtCoder, people use a language called Taknese, which uses lowercase English letters.
翻译中…
In Taknese, the plural form of a noun is spelled based on the following rules:
翻译中…
- If a noun's singular form does not end with
s, appendsto the end of the singular form. - If a noun's singular form ends with
s, appendesto the end of the singular form.
翻译中…
You are given the singular form $S$ of a Taknese noun. Output its plural form.
翻译中…
Constraints
翻译中…
$S$is a string of length$1$between$1000$, inclusive.$S$contains only lowercase English letters.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
S
翻译中…
Output
翻译中…
Print the plural form of the given Taknese word.
翻译中…
样例
Input #1
apple
Output #1
apples
`apple` ends with `e`, so its plural form is `apples`.
Input #2
bus
Output #2
buses
`bus` ends with `s`, so its plural form is `buses`.
Input #3
box
Output #3
boxs
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。