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, append s to the end of the singular form.
 - If a noun's singular form ends with s, append es to 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.

-----Sample Input-----
apple

-----Sample Output-----
apples

apple ends with e, so its plural form is apples.

Difficulty: introductory

Starter code:

Solutions:
s = input()
print((s + "es" if s[len(s) - 1] == 's' else s + 's'))


s = list(input())
if s[-1] == "s":
    s.append("e")
    s.append("s")
else:

    s.append("s")
for i in range(len(s)):
    print(s[i], end ="")


# -*- coding: utf-8 -*-


def main():
    s = input()

    if s[-1] == 's':
        print((s + 'es'))
    else:
        print((s + 's'))


def __starting_point():
    main()

__starting_point()

def main():
    s = input()
    if s[-1] == 's':
        s += 'es'
    else:
        s += 's'
    print(s)


def __starting_point():
    main()


__starting_point()

a=list(input())
if a[len(a)-1]=="s":
    a.append("e")
a.append("s")
print(*a, sep="")


a = input()

if a[len(a)-1] == 's':
  a = a + 'es'
else:
  a = a + 's'
  
print(a)

a = input()

if a[-1] == "s":
    a += "es"
else:
    a += "s"


print(a)

n=  input()

if n[-1] == "s":
  n = n + "es"
else:
  n = n + "s"

print(n)

s = list(input())

if s[-1] == 's':
    s.append('e')
    s.append('s')
else:
    s.append('s')

print(''.join(s)) 

s = input()

if s[-1] == 's':
    print(s + 'es')
else:
    print(s + 's')

s = input()
l = len(s)
if s[l-1] == "s":
  ans = s + "es"
else:
  ans = s + "s"
print(ans)

string = input()
 
if string[-1] == "s":
  string += "es"
else:
  string += "s"
  
print(string)

a = input()
if a[len(a)-1] == 's':
  print(a+'es')
else:
  print(a+'s')

s = input()

if s[-1] == 's':
    s += 'es'
else:
    s += 's'
    
print(s)

n = input()
if n[-1:] == 's':
  n = n + 'es'
else:
  n = n + 's'
  
print(n)

s = input()
if s[-1] == "s":
  print(s + "es")
else:
  print(s + "s")

#!/usr/bin/env python3

def main():
	a = str(input())
	if a[-1] == 's':
		print((a + 'es'))
	else:
		print((a + 's'))


def __starting_point():
	main()

__starting_point()

s = input()
lc = s[-1]

if lc != "s":
    s += "s"
else:
    s += "es"

print(s)

s = input()
if s[-1] == 's':
  print('{}es'.format(s))
else:
  print('{}s'.format(s))

s = input()
if s[-1] == 's':
    print(s + 'es')
else:
    print(s + 's')

S = input()
if S[-1] == 's':
  S += 'es'
else:
  S += 's'
print(S)


s=input()
if s[-1]=='s':
    print(s+'es')
else:
    print(s+'s')

w = input()
if w[-1] == 's':
  print(str(w) + 'es')
else:
  print(str(w) + 's')

s=input()
if s[len(s)-1]=='s':
	s=s+'es'
else:
	s=s+'s'
print(s)


x = input()
l=list(x)
if l[-1]!='s':
    print(x+'s')
else:
    print(x+'es')

w=str(input())
if w[-1]=='s':
  print(w+'es')
else:
  print(w+'s')

s=input()
print(s+"s" if s[-1:]!="s" else s+"es")

s = input()
if s[-1]=='s':
    print((s+'es'))
else:
    print((s+'s'))


S=input()

if S[-1] is 's':
    print(str(S)+'es')
else:
     print (str(S)+'s')

import sys

input = sys.stdin.readline


def main():
    s = input().strip()
    print((s + "es" if s[-1] == "s" else s + "s"))


def __starting_point():
    main()

__starting_point()

S = str(input())

text = [S+'es' if x == 's' else S+'s' for x in S[-1]]
print(text[0])

s = input()
if s[-1] == 's':
  print('{}es'.format(s))
else:
  print('{}s'.format(s))

S = str(input())
if S[-1]=='s':
    S += 'es'
else:
    S += 's'
print(S)

s=input()
print(s+'es'[s[-1]!='s':])

from sys import stdin
s = stdin.readline().rstrip()
if s[-1] == 's':
    print((s + 'es'))
else:
    print((s + 's'))


a = input()
if a[-1] == "s":
  a += "es"
else:
  a+= "s"
print(a)  

s=input()
print(s+'es' if s[-1]=='s' else s+'s')

s = input()
if s[-1] != 's':
    print(s+'s')
else:
    print(s+'es')

from sys import stdin
s = input()
if s[-1] == 's':
    print((s + 'es'))
else:
    print((s + 's'))


s = input()
print(s + ("es" if s[-1] == "s" else "s"))

a = input()
if a[-1] == "s":
  print(a+"es")
else:
  print(a+"s")

s=input();print(s+'es'[s[-1]!='s':])

S = input()
if S[-1] == 's':
    S = S + 'es'
else:
    S = S + 's'
print(S)

S=input();print(S+"e"*(S[-1]=="s")+"s")

s=input()
if s[-1] == 's':
    print((s+'es'))
else:
    print((s+'s'))


s = input()

if (s[-1] == "s"):
    s = s + "es"
else:
    s = s + "s"

print(s)


s = input()
if s[-1] != 's':
  print(s+"s")
else:
  print(s+'es')

s = input()

if s[-1] == 's':
    print(s+"es")
else:
    print(s+"s")

S = input()
if S[-1] =='s':
    print(S + "es")
else:
    print(S+"s")

s = input() 
(print(s + "es") if s[-1:]=="s" else print(s + "s"))

s = str(input())
if s[-1] == 's':
    print(s+'es')
else:
    print(s+'s')

letter=str(input())

if letter[-1] == "s":print((letter + "es"))
else:print((letter + "s"))


S = input()

text = [S+'es' if x == 's' else S+'s' for x in S[-1]]

print(text[0])

a = input()
b = list(a)

if b[-1] == 's':
  print((a + 'es'))
else:
  print((a + 's'))



s = input()
if s[-1] == 's' : print(s+"es")
else: print(s+"s")

S = input()
if S[-1] == "s":
    S += "es"
else:
    S += "s"
print(S)


S = str(input())

if S[len(S)-1] == "s":
   print(S+"es")
else:
   print(S+"s")

# -*- coding: utf-8 -*-
s = input()
if s[-1] == "s":
    t_lang = s + "es"
else:
    t_lang = s + "s"

print(("{}".format(t_lang)))



S = input()
if S[-1] == "s":
    print("{}{}".format(S,"es"))
else:
    print("{}{}".format(S,"s"))

S = input()

if S[-1] == 's':
    print((S + 'es'))
else:
    print((S + 's'))


S=input()
print(S+['s','es'][S[-1]=='s'])

#!/usr/bin/env python3

def main():
	a = str(input())
	if a[-1] == 's':
		print((a + 'es'))
	else:
		print((a + 's'))


def __starting_point():
	main()

__starting_point()

s=str(input())
if s[-1]=='s':
    s+='es'
    print(s)
else:
    s+='s'
    print(s)

S = input()
if S[-1] == 's':
  print(S + 'es')
else:
  print(S + 's')

S = input()
     
if S[-1] == "s":
    S += "es"
else:
    S += "s"
 
print(S)

s = input()
List = list(s)

if List[-1] == 's':
     print((s + "es"))
else:
     print((s + 's'))


word = input()

if word[len(word) - 1] == "s":
    print(word + "es")
else:
    print(word + "s")

s=[]
s=str(input())
def plural(s):
    if s[-1]=='s':
        print(s+'es')
    else:
        print(s+'s')
plural(s)

S = list(input())

if (S[-1] == 's'):
    S.append("es")
    print("".join(S))
else:
    S.append("s")
    print("".join(S))

S= input()
if S[-1:]=="s":
    print(S+"es")
else:
    print(S+"s")

s = input()
 
if s[-1] == 's':
  print(s + 'es')
else:
  print(s + 's')

import sys
import heapq
import math
import fractions
import bisect
import itertools
from collections import Counter
from collections import deque
from operator import itemgetter
def input(): return sys.stdin.readline().strip()
def mp(): return map(int,input().split())
def lmp(): return list(map(int,input().split()))

s = input()
if s[len(s)-1] == "s":
  print(s + "es")
else:
  print(s + "s")

w = input()

if w.endswith("s"):
	w += "es"
else:
	w += "s"

print(w)

S = input()
 
if S[-1] == "s":
    S += "es"
else:
    S += "s"
 
print(S)

# -*- coding: utf-8 -*-
import re
s = input()

if re.search(r's$', s):
    print(s + "es")
else:
    print(s + "s")

S = input()
if S[len(S)-1] == "s":
    S = S + "es"
else:
    S = S + "s"
print(S)

s = input()

if s[-1] == "s":
    print((s + "es"))
else:
    print((s + "s"))


s=input()
if(s[-1]=="s"):
    print(s+"es")
else:
    print(s+"s")

S = input()

if S[-1] == "s":
    print((''.join(S) + 'es'))
else:
    print((''.join(S) + 's'))


s = str(input())
if s[-1] == "s":
  print(s+"es")
else:
  print(s+"s")

N=input()
if N[-1]=="s":
    N+="es"
else:
    N+="s"

print(N)


S = input()
if S[-1] != 's':
    print(S + 's')
else:
    print(S + 'es')

S = input()
if S[-1] == 's':
	S = S+'es'
else:
	S = S + 's'
print(S)

S = input()

if S[-1] == 's':
    S += "es"

else:
    S += "s"

print(S)

word = input()
if word[-1] == 's':
    print((word + 'es'))
else:
    print((word + 's'))


S = input()

if S[-1]== "s":
    S += "es"
else:
    S += "s"

print(S)

def main():
    s = input()
    
    if s[-1] != "s":
        result = s +"s"
    else:
        result = s + "es"
    
    print(result)


main()

S = input()
if S[-1] != 's':
    print((S + 's'))
else:
    print((S + 'es'))


S = input()
print((S + 'es' if S[-1] == 's' else S + 's'))

s=[]
s=str(input())
def plural(s):
    if s[-1]=='s':
        print(s+'es')
    else:
        print(s+'s')
plural(s)

import math  # noqa: F401
from collections import deque  # noqa: F401
from typing import Deque, Dict, List, Optional, Tuple, Union  # noqa: F401


def main(S: str):
    if S[-1] != "s":
        print((S + "s"))
    else:
        print((S + "es"))


def __starting_point():
    S = input()
    main(S)

__starting_point()

S = input()

if S[-1] == "s":
    S += "es"
    
else:
    S += "s"

print(S)

s = input()

if s[-1] == 's':
  print(s+'es')
  
else:
  print(s+'s')

S = input()
if S[-1] == 's':
    print(S + 'es')
else:
    print(S + 's')

a = str(input())

b = list(a)

if b[len(b) - 1] == "s":
    b.append("es")
else:
    b.append("s")

ans = "".join(b)
print(ans)

S = input()

if len(S)>=1 and len(S)<=1000 and str.islower(S):
    if S[-1] != 's':
        print(S+'s')
    else:
        print(S+'es')

s = input()
if s[-1] == "s":
  print((s + "es"))
else:
  print((s + "s"))



s = input()

if s[-1] == 's':
    print(s,'es', sep='')
else:
    print(s, 's', sep='')

# coding:utf-8

s = input()
if s[-1] == 's':
    print((s + 'es'))
else:
    print((s+'s'))


S = input()
if S[-1] == 's':
  print(S + 'es')
else:
  print(S + 's')