using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp9
{
class Program
{
static void Main(string[] args)
{
string noun = Console.ReadLine();
if (noun.EndsWith("y"))
{
noun = noun.Remove(noun.Length - 1);
Console.WriteLine(noun + "ies");
} else if (noun.EndsWith("o") || noun.EndsWith("s") || noun.EndsWith("x") || noun.EndsWith("z") || noun.EndsWith("ch") || noun.EndsWith("sh"))
{
Console.WriteLine(noun + "es");
} else
{
Console.WriteLine(noun + "s");
}
}
}
}
Comments