Takahashi san 2
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Problem Statement
KEYENCE has a culture of addressing everyone with the suffix "-san," regardless of roles, age, or positions.
You are given a string consisting of lowercase English letters.
If ends with san
, print Yes
; otherwise, print No
.
Constraints
- is a string of length between and , inclusive, consisting of lowercase English letters.
Input
The input is given from Standard Input in the following format:
Output
If ends with san
, print Yes
; otherwise, print No
.
Sample Input 1
takahashisan
Sample Output 1
Yes
The string takahashisan
ends with san
, so print Yes
.
Sample Input 2
aokikun
Sample Output 2
No
The string aokikun
does not end with san
, so print No
.
SDNU_ACM_ICPC_2024_WEEKLY_PRACTICE_1st
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2024-10-27 18:30
- End at
- 2024-10-27 21:30
- Duration
- 3 hour(s)
- Host
- Partic.
- 39