# [PYTHON] AtCoder Beginner Contest 179

A - Plural Form

#### `Python`

``````
S = str(input())

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

B - Go to Jail

#### `C++`

``````
#include<iostream>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<utility>
#include<iomanip>
#include<map>
#include<queue>
#include<cmath>
#include<cstdio>

#define rep(i,n) for(int i=0; i<(n); ++i)
#define pai 3.1415926535897932384

using namespace std;
using ll =long long;
using P = pair<int,int>;

int main(int argc, const char * argv[]) {

int N;
cin >> N;

vector<int> d1(N);
vector<int> d2(N);

int Ans = 0;
int sum = 0;
for(int i=0; i<N; i++){
cin >> d1[i] >> d2[i];

if(d1[i] == d2[i]){
sum++;
Ans = max(Ans, sum);
}else{
sum=0;
}
}

if(Ans>=3) cout << "Yes" << endl;
else cout << "No" << endl;

return 0;
}
``````

C - A x B + C

#### `C++`

``````
#include<iostream>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<utility>
#include<iomanip>
#include<map>
#include<queue>
#include<cmath>
#include<cstdio>

#define rep(i,n) for(int i=0; i<(n); ++i)
#define pai 3.1415926535897932384

using namespace std;
using ll =long long;
using P = pair<int,int>;

int main(int argc, const char * argv[]) {

ll N;
cin >> N;

ll Ans = 0;
for(ll A=1; A<N; A++){
for(ll B=1; A*B<N; B++){
ll C = N - (A * B);
if(C > 0) Ans++;
}
}

cout << Ans << endl;

return 0;
}
``````