Type: Default 2000ms 256MiB

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 SS consisting of lowercase English letters.
If SS ends with san, print Yes; otherwise, print No.

Constraints

  • SS is a string of length between 44 and 3030, inclusive, consisting of lowercase English letters.

Input

The input is given from Standard Input in the following format:

SS

Output

If SS ends with san, print Yes; otherwise, print No.

Sample Input 1

takahashisan

Sample Output 1

Yes

The string S=S= takahashisan ends with san, so print Yes.

Sample Input 2

aokikun

Sample Output 2

No

The string S=S= aokikun does not end with san, so print No.

SDNU_ACM_ICPC_2024_WEEKLY_PRACTICE_1st

Not Attended
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