Problem:


Score : 100 points

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, 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 1

apple

Sample Output 1

apples

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

Sample Input 2

bus

Sample Output 2

buses

bus ends with s, so its plural form is buses.

Sample Input 3

box

Sample Output 3

boxs



Sample input:
apple


Sample output:
apples

Submission status: Accepted

Solution code:
S = input()
length = len(S)
if S[length-1] == "s":
  ans = S + "es"
else:
  ans = S + 's'
 
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
import sys
import math
import numpy as np
import itertools


m = list(input())


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

for i in m:
    print(i,end='')
print("")

Submission status: Accepted

Solution code:

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

print(''.join(x))

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    S = input()
    last = S[-1:]
    if 's' == last:
        mul = S + "es"
    else :
        mul = S + "s"
    
    print(mul)

Submission status: Accepted

Solution code:
# !/usr/bin/python3

"""
https://atcoder.jp/contests/abc179/tasks/abc179_a
A - Plural Form .
"""

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

    return


if __name__ == "__main__":
    s = input()
    solve(s)

Submission status: Accepted

Solution code:
noun = input()

if noun[-1] == 's':
    noun = noun + 'es'
else:
    noun = noun + 's'

print(noun)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__=="__main__":
    S = list(input())
    length = len(S)
    if S[length-1]=='s':
        S += 'es'
    else:
        S += 's'
    print(''.join(S))

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

Solution code:
l=list(str(input()))
if l[len(l)-1]=='s':
    l[len(l)-1]='ses'
else:
    l[len(l)-1]+='s'
o=''
for i in l:
    o+=i
print(o)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
z=list(s)
if z[-1]=='s':
  print(s+'es')

else:
  print(s+'s')

Submission status: Accepted

Solution code:
S = input()

if S[-1] != 's':
    print(f'{S}s')
else:
    print(f'{S}es')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s = input()
if s.endswith("s"):
    print(s+"es")
else:
    print(s+'s')

Submission status: Accepted

Solution code:
s = str(input())
if s[-1] == 's':
    print(s + 'es')
elif s[-1] == 'y':
    print(s[0:-1] + 'ies')
else:
    print(s + 's')

Submission status: Accepted

Solution code:
def addPluralForm(s):
    if s[-1] == 's':
        return s + 'es'
    else:
        return s + 's'

s = str(input())
print(addPluralForm(s))

Submission status: Accepted

Solution code:
def main():
	S = str(input())
	if S[len(S)-1] == "s": print(S+"es")
	else: print(S+"s")

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = input()
reveS = S[::-1]
if reveS[0]!="s" :
    print(S+"s")
else :
    print(S+"es")

Submission status: Accepted

Solution code:
text = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

x = len(s)

if s[x-1] == "s":
    s += "es"

else:
    s += "s"

print(s)

Submission status: Accepted

Solution code:
#input
s = input()

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(plural)

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
s = str(input())
l = list(s)
if l[-1] == "s":
  ans = s + "es"
else:
  ans = s + "s"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
i = input()

if i.endswith("s"):
    print(i+"es")
else:
    print(i+"s")

Submission status: Accepted

Solution code:
a = str(input())
a_la = a[-1]
if a_la == 's':
    ans = a + 'es'
else:
    ans = a + 's'
print(ans)

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

S_list =list(input())
if S_list[-1] == 's':
    S_list.append('es')

else:
    S_list.append('s')


print(''.join(S_list))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = input()
n = list(t)
if n[-1] == "s":
  print(t+"es")
else:
  print(t+"s")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x= str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=str(input())
S=list(map(str,S))
if S[-1]=='s':
  S.append('es')
else:
  S.append('s')
for i in range(len(S)):
  print(S[i],end='')

Submission status: Accepted

Solution code:
# cording:utf-8

S = input()

# 文字数を出力
Max = len(S)

# 最後の文字がsなら
if S[Max-1] == "s":
    print(S + "es")
else:
    print(S + "s")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
in_n = input().split()
n = str(in_n[0])
if n[len(n)-1] == 's':
    print(n + 'es')
else:
    print(n + 's')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
if s.endswith("s"):
    s+='es'
else:
    s+='s'
print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
S = input()
if S[-1:] == 's':
  print(S+'es')
else:
  print(S+'s')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s = input()
l = len(s) - 1
if s[l] == 's':
    s += 'es'
elif s[l] != 's':
    s += 's'

print(s)

Submission status: Accepted

Solution code:
S=input()
S_re=list(reversed(S))
if S[len(S)-1]!="s":
    print(S,end="")
    print("s")
else:
    print(S,end="")
    print("es")

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
s = str(input())
a = []
for n in list(s):
    a.append(n)
b = len(a)
if a[b-1] == "s":
    c = "es"
else:
    c = "s"
print(s + c)

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

s = str(input())

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

S = input().strip()

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

Submission status: Accepted

Solution code:
def solve():
    s = input()
    if s[-1] == "s":
        print(s+"es")
    else:
        print(s+"s")
    return 0

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
def solve():
    S = input()

    j = S[len(S)-1]

    if j=="s":
        ans = S + "es"
    else:
        ans = S + "s"

    print(ans)    

if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
S = list(input())

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

print("".join(S))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a = input()
print(a+'es' if a[-1] == 's' else a + 's')

Submission status: Accepted

Solution code:
a = list(map(str,input()))
if a[-1] == 's':
    a.append('es')
else:
    a.append('s')
print(''.join(a))

Submission status: Accepted

Solution code:
S = str(input().lower())
if S[-1]=='s':
    print(S + "es")
else:
    print(S + "s")

Submission status: Accepted

Solution code:
noun = input()

if noun[len(noun)-1] != 's':
  print(noun + 's')
elif noun[len(noun)-1] == 's':
  noun[len(noun)-2]
  print(noun + 'es')

Submission status: Accepted

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

print(S)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(S)

Submission status: Accepted

Solution code:
S = input()
if S[-1]=='s':
  S += 'e'
print(S+'s')

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
T=list(input())
if T[len(T)-1]!='s':
   T.append('s')
else:
  T.append('es')
U=''.join(T)
print(U)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())
slis = list(S)
if slis.pop(-1) == "s":
    print("{0}es".format(S))
else:
    print("{0}s".format(S))

Submission status: Accepted

Solution code:
word = input()

if word[-1] == 's':
  word = f'{word}es'
else:
  word = f'{word}s'
  
print(word)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
if s[-1] != 's':
    print(''.join(s) + 's')
elif s[-1] == 's':
    print(''.join(s) + 'es')

Submission status: Accepted

Solution code:
def main():
    S = input()

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s = input()

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

print(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

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

    print(s)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
s = sys.stdin.readline().rstrip("\n")
if s[-1] == 's':
    print(s+'es')
else:
    print(s+'s')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
ans = ""
if s[-1] == "s":
    ans += s + "es"
else:
    ans += s + "s"

print(ans)

Submission status: Accepted

Solution code:
s=input()
t=list(s)

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if s[-1] != 's':
    print(s, end='')
    print('s', end='')
else:
    print(s, end='')
    print('es', end='')

Submission status: Accepted

Solution code:
word = input()

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

print(word)

Submission status: Accepted

Solution code:
s = list(input())
k = ''
if s[-1] != 's' :
    s.append('s')
else :
    s.append('es')
for i in s :
	k += i
print(k)

Submission status: Accepted

Solution code:
w = input()

if w.endswith('s'):
  w = w + "es"
  print(w)
elif not(w.endswith('s')):
  w = w + "s"
  print(w)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# cook your dish here

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
s="s"
es="es"

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

print(S)

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

# input = sys.stdin.readline


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

    print(s)


main()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
'''
Name: Devansh
Username: singhdevansh
Github: https://github.com/Devansh3712
'''

import os
import sys
import math
from itertools import *
from io import BytesIO, IOBase
from collections import *

#<fast I/O>
BUFSIZE = 8192

class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")

sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
#</fast I/O>

#<template>
mod=(10**9)+7
pi=3.14159265358979323846264338327950

def i1():	#int(input())
	return int(sys.stdin.readline())

def sf():	#input()
	return sys.stdin.readline()

def mi():	#map(int(input()))
	return map(int,sys.stdin.readline().split())

def arr():	#list(map(int,input().split()))
	return list(map(int,sys.stdin.readline().split()))

def pf(ans): #print(x)
	return sys.stdout.write(str(ans)+"\n")

def gcd(a,b):
	if a==0:
		return b
	elif b==0:
		return a
	if a>b:
		return gcd(a%b,b)
	else:
		return gcd(a,b%a)

def lcm(a,b):
	return (a*b)//gcd(a,b)
#</template>


#<solve>
def solve():
	s=input()
	if s[-1]=='s':
		print(s+'es')
	else:
		print(s+'s')
solve()
#</solve>

#<solution>
# tc=i1()
# for t in range (tc):
# 	solve()
#<solution>

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input('')

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

else:
  print(a+'s')

Submission status: Accepted

Solution code:
from itertools import groupby
class Combination:
    def __init__(self, n, mod):
        self.n = n
        self.mod = mod
        self.fac = [1 for i in range(self.n + 1)]
        self.finv = [1 for i in range(self.n + 1)]
        for i in range(2, self.n+1):
            self.fac[i] = (self.fac[i - 1] * i) % self.mod
            self.finv[i] = (self.finv[i - 1] * pow(i, -1, self.mod)) % self.mod

    def comb(self, n, m):
        return self.fac[n] * (self.finv[n - m] * self.finv[m] % self.mod) % self.mod
        
def iparse():
    return list(map(int, input().split()))


# RUN LENGTH ENCODING str -> tuple


def runLengthEncode(S: str):
    grouped = groupby(S)
    res = []
    for k, v in grouped:
        res.append((k, str(len(list(v)))))
    return res


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys


def main():
    S = sys.stdin.readline().rstrip()

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s =input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

print(S)

Submission status: Accepted

Solution code:
S = input()
if S.endswith('s'):
    print(f'{S}es')
else:
    print(f'{S}s')

Submission status: Accepted

Solution code:
item = input()

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

print(item)

Submission status: Accepted

Solution code:
def main():
    word=input()

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

    pass

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 19 13:03:22 2020

@author: Admin
"""

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

Submission status: Accepted

Solution code:
a = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

print(S)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def readInt():
    return int(input())
def readList():
    return list(map(int,input().split()))
def readMap():
	return map(int,input().split())
def readStr():
    return input()
inf=float('inf')
mod = 10**9+7
import math
def solve(s):
    return s+'s' if s[-1]!='s' else s+'es'


s=readStr()
print(solve(s))

Submission status: Accepted

Solution code:
S = input()

if S[-1] == "s":
    print("%ses" % (S,))
else:
    print("%ss" %(S,))

Submission status: Accepted

Solution code:
S = list(input())
if S[-1] == 's':
    S.append('es')
else:
    S.append('s')
for i in range(len(S)-1):
    print(S[i],end='')
print(S[-1])

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = read().rstrip().decode()

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

Submission status: Accepted

Solution code:
s=str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def plural_form(S: str) -> str:
    return S + ("es" if S.endswith("s") else "s")


if __name__ == "__main__":
    S = input()
    ans = plural_form(S)
    print(ans)

Submission status: Accepted

Solution code:
import numpy as np

#inp = list(map(int, input().split())
inp = list(input())
if inp[-1] == "s":
    inp.append("es")
else :
    inp.append("s")
for i in range(len(inp)):
  print(inp[i], end ="")

Submission status: Accepted

Solution code:
S = input()
SL = list(S)
size = len(SL)

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

Submission status: Accepted

Solution code:
S=list(input())
if S[len(S)-1]=="s":
  S.append("es")
else:
  S.append("s")
print("".join(S))

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 入力
s = str(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
import math
import decimal
import itertools
from itertools import product
from functools import reduce
def input():
    return sys.stdin.readline()[:-1]
def gcd(*numbers):
    return reduce(math.gcd, numbers)
def lcm_base(x, y):
    return (x * y) // math.gcd(x, y)
def lcm(*numbers):
    return reduce(lcm_base, numbers, 1)
def sort_zip(a:list, b:list):
    z = zip(a, b)
    z = sorted(z)
    a, b = zip(*z)
    a = list(a)
    b = list(b)
    return a, b
def ceil(x):
    return math.ceil(x)
def floor(x):
    return math.floor(x)

def main():
    S = input()

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





if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from sys import stdin
input = stdin.readline

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

print(''.join(s))

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

Solution code:
s = input()

n = len(s)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 179A Plural Form
S = list(input())
l = len(S)
esu = "s"
if S[l-1] == esu:
    esu = "es"
print(''.join(S) + esu)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

else:
	print(s+"s")