atcoder#ABC249B. [ABC249B] Perfect String

[ABC249B] Perfect String

Score : 200200 points

Problem Statement

Let us call a string consisting of uppercase and lowercase English alphabets a wonderful string if all of the following conditions are satisfied:

  • The string contains an uppercase English alphabet.
  • The string contains a lowercase English alphabet.
  • All characters in the string are pairwise distinct.

For example, AtCoder and Aa are wonderful strings, while atcoder and Perfect are not.

Given a string SS, determine if SS is a wonderful string.

Constraints

  • 1S1001 \le |S| \le 100
  • SS is a string consisting of uppercase and lowercase English alphabets.

Input

Input is given from Standard Input in the following format:

SS

Output

If SS is a wonderful string, print Yes; otherwise, print No.

AtCoder
Yes

AtCoder is a wonderful string because it contains an uppercase English alphabet, a lowercase English alphabet, and all characters in the string are pairwise distinct.

Aa
Yes

Note that A and a are different characters. This string is a wonderful string.

atcoder
No

It is not a wonderful string because it does not contain an uppercase English alphabet.

Perfect
No

It is not a wonderful string because the 22-nd and the 55-th characters are the same.