/
Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
キーエンスでは、役割や年齢、立場の違いに関係なく「さん」付けして呼ぶという文化があります。
英小文字のみからなる文字列 S が与えられます。
S が san で終わっているならば Yes を、終わっていないならば No を出力してください。
制約
- S は英小文字のみからなる長さ 4 以上 30 以下の文字列
入力
入力は以下の形式で標準入力から与えられる。
S
出力
S が san で終わっているならば Yes を、終わっていないならば No を出力せよ。
入力例 1
takahashisan
出力例 1
Yes
文字列 S=takahashisan は san で終わっているため、 Yes を出力します。
入力例 2
aokikun
出力例 2
No
文字列 S=aokikun は san で終わっていないため、 No を出力します。
Score : 100 points
Problem Statement
KEYENCE has a culture of addressing everyone with the suffix "-san," regardless of roles, age, or positions.
You are given a string S consisting of lowercase English letters.
If S ends with san, print Yes; otherwise, print No.
Constraints
- S is a string of length between 4 and 30, inclusive, consisting of lowercase English letters.
Input
The input is given from Standard Input in the following format:
S
Output
If S ends with san, print Yes; otherwise, print No.
Sample Input 1
takahashisan
Sample Output 1
Yes
The string S= takahashisan ends with san, so print Yes.
Sample Input 2
aokikun
Sample Output 2
No
The string S= aokikun does not end with san, so print No.