AtCoder Beginner Contest 071
B
Not Found
AtCoder
⌀ 115
原题
← AC →
翻译中…

Problem Statement

翻译中…

You are given a string $S$ consisting of lowercase English letters. Find the lexicographically (alphabetically) smallest lowercase English letter that does not occur in $S$. If every lowercase English letter occurs in $S$, print None instead.

翻译中…

Constraints

翻译中…
  • $1 \leq |S| \leq 10^5$ ($|S|$ is the length of string $S$.)
  • $S$ consists of lowercase English letters.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

S

翻译中…

Output

翻译中…

Print the lexicographically smallest lowercase English letter that does not occur in $S$. If every lowercase English letter occurs in $S$, print None instead.

翻译中…

样例

Input #1
atcoderregularcontest
Output #1
b
The string `atcoderregularcontest` contains `a`, but does not contain `b`.
Input #2
abcdefghijklmnopqrstuvwxyz
Output #2
None
This string contains every lowercase English letter.
Input #3
fajsonlslfepbjtsaayxbymeskptcumtwrmkkinjxnnucagfrg
Output #3
d
题目信息
题号
abc071_b
时间限制
2 s
内存限制
256 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。