There are two forms of nouns, singular and plural. The conversion between these two is quite easy.
Normally, you end it with
s
. ex.car
=>cars
.If it ends with
s
,x
,z
,ch
orsh
, end it withes
. ex.bus
=>buses
.If it ends with
y
with a consonant just before it, change they
toies
. ex.penny
=>pennies
.If it ends with
f
orfe
, change it toves
. ex.knife
=>knives
.If it ends with
o
with a consonant just before it, change it tooes
. ex.potato
=>potatoes
.
Task
You will be given a singular noun. You have to convert the given noun to plural and output it.
Rules
You will not be given irregular nouns, like
mouse
andmoose
.You will not be given exceptions, such as
safe
(safes
; violating #4),piano
(pianos
; violating #5) ando
(oes
, violating #5).You will not be given words which have two or more possible plural forms, such as
mosquito
(mosquitos
ormosquitoes
) androof
(roofs
orrooves
).You will not be given uncountable nouns.
y
doesn't count as a vowel.
Examples
car => cars
bus => buses
potato => potatoes
knife => knives
penny => pennies
exception => exceptions
wolf => wolves
eye => eyes
decoy => decoys
radio => radios