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: EASY

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


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


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


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


w = str(input())
if w[-1] == 's':
	print(w + 'es')
else:
	print(w + '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='')


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


S = input()
print(S + ('es' if S.endswith('s') else 's'))


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


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


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


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


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


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


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


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


s = input()
if s[-1].lower() == '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':
	S += 'e'
S += 's'
print(S)


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


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


s = input()
if s.endswith('s'):
	n = s + 'es'
else:
	n = s + 's'
print(n)


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


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


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

def __starting_point():
	main()
__starting_point()


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


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')


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


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


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


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


i = input()
print(i + 'es' if i.endswith('s') else i + 's')


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

def __starting_point():
	main()
__starting_point()


s = []
s = str(input())

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


s = input()
print(s + 'e' * (s[-1] == 's') + 's')


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


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


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


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


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


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


s = input()
List = list(s)
if List[-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':
	print(s + 'es')
	exit()
print(s + 's')


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


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


import re
s = input()
if re.search('s$', s):
	print(s + 'es')
else:
	print(s + 's')


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


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


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


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


s = input()
print(s, end='es' if s.endswith('s') else 's')


import math
from collections import deque
from typing import Deque, Dict, List, Optional, Tuple, Union

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

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


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


s = input()
print(f'{s}es' if s[-1] == 's' else f'{s}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, 'es', sep='')
else:
	print(s, 's', sep='')


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')


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())
if S[len(S) - 1] == 's':
	print(S + 'es')
else:
	print(S + 's')


s = input()
ans = s
if s[-1] == 's':
	ans += 'e'
print(ans + 's')


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


s = input()
print((s + 's', s + 'es')[s.endswith('s')])


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


n = input()
print([n + 's', n + 'es'][n[-1] == '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)


a = input()
print(a + 'e' * (a[-1] == 's') + 's')


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


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


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