409387: GYM103496 A Alice, Bob, and Cindy, and Dani

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

A. Alice, Bob, and Cindy, and Danitime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Welcome to the 2021 Abakoda Long Contest! All our problem stories will revolve around the various misadventures of the high school students Alice, Bob, and Cindy, who had previously appeared in a similar long contest from last year (from the same problem author!). But the executives demand a new fourth character—the freshman Dani! We don't know much about him, other than the fact that he has a mysterious past... Maybe we'll learn more about him throughout the different stories?

Unfortunately, problem stories (which we'll call episodes) can usually only accommodate at most three different characters at a time. Now that there are four characters, for each episode, we'd have to pick one of the four to be excluded from that episode's hijinks. The fans certainly didn't like that!

Because of this backlash, we won't really be seeing much of Dani, outside of the few episodes he had already appeared in... What a shame that we'll never see the resolution of his character arc...

Oh well, nothing that can be done about that. The programming task that we have is simple. You will be given the names of three characters that appeared in some episode. Identify which among the four of Alice, Bob, Cindy, Dani is missing.

Input

Input consists of a single line containing three space-separated names from among Alice, Bob, Cindy, Dani, in some order.

Output

Output the name of the character that was not given in the input.

Scoring

$$$$$$\begin{align*}

&\begin{array}{|c|c|l|} \hline \text{Subtask} & \text{Points} & \text{Constraints} \\ \hline 1 & \mathbf{50} & \text{The names in the input are given in alphabetical order.} \\ \hline 2 & \mathbf{50} & \text{No further constraints.} \\ \hline \end{array}\\

\end{align*}$$$$$$

ExampleInput
Alice Bob Cindy
Output
Dani
Note

Dani is the name that does not appear in the input.

加入题单

算法标签: