CF2172A.ASCII Art Contest

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

ASCII Art Contest

Three leading AI-powered creative assistants—Gemini, ChatGPT, and Claude—enter the first ever ASCII Art Contest, where they must impress a panel of human judges with their text-based masterpieces.

Each participant receives a score between 80 and 100 (inclusive). The organizers want to announce the final standing only if the judges' opinions are "close enough"; otherwise, they will ask the judges to reconsider.

Given the three integer scores of Gemini, ChatGPT, and Claude, determine the contest result:

  • If the maximum score and the minimum score differ by at least 10 points, print check again (the judging seems inconsistent, so the panel must re-evaluate).
  • Otherwise, print final X, where X is the median of the three scores (the score that would be in the middle if all three were sorted in non-decreasing order).

Input

A single line contains three integers g,c,g, c, \ell, representing the scores of Gemini, ChatGPT, and Claude respectively.

  • 80g,c,10080\le g, c, \ell \le 100

Output

Print the required answer in a line.

Samples

88 94 95
final 94
100 80 81
check again
98 99 98
final 98
95 86 85
check again

在线编程 IDE

建议全屏模式获得最佳体验