abc179_a - Plural Form
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;
int main(void)
{
string s;
cin >> s;
if (s.back() == 's')
cout << s << "es" << endl;
else
cout << s << "s" << endl;
return 0;
}