Perfect String

AtCoder
IDabc249_b
Time2000ms
Memory256MB
Difficulty
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 $S$, determine if $S$ is a wonderful string. ## Constraints * $1 \le |S| \le 100$ * $S$ is a string consisting of uppercase and lowercase English alphabets. ## Input Input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
AtCoder
Output #1
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.
Input #2
Aa
Output #2
Yes

Note that `A` and `a` are different characters. This string is a wonderful string.
Input #3
atcoder
Output #3
No

It is not a wonderful string because it does not contain an uppercase English alphabet.
Input #4
Perfect
Output #4
No

It is not a wonderful string because the $2$\-nd and the $5$\-th characters are the same.
API Response (JSON)
{
  "problem": {
    "name": "Perfect String",
    "description": {
      "content": "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 alph",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc249_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Let us call a string consisting of uppercase and lowercase English alphabets a **wonderful string** if all of the following conditions are satisfied:\n\n*   The string contains an uppercase English alph...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments