P16436 [XJTUPC 2026] Ghost × Graduation
Background
:::epigraph[Dialogue in the school team computer lab]
"Oh no, I’ll probably fail the make-up exam!"
"So what? At least you went to take the make-up exam. That alone already beats your senior."
:::
Description
The new generation replaces the old. With the hosting of XJTUPC2026, another group of seniors is about to graduate, but before that, there is still one more thing to handle……
As everyone knows, in a certain Xi’an university, graduating students need to complete $12$ credits of general education courses, usually consisting of $3$ **general education core courses** and $3$ **general education elective courses**.
Now assume that all students have taken only $6$ general education courses. The $i$-th course is either a **general education core course** or a **general education elective course**.
Now, due to certain well-known system issues, students can only manually calculate whether they have taken enough courses, that is, determine whether they have taken at least $3$ **general education core courses** and at least $3$ **general education elective courses**. However, this is too troublesome, so you are asked to write a program to complete this function.
Input Format
The input consists of one line containing six integers $x_1,x_2,\cdots, x_6$ ($x_1,x_2\cdots,x_6\in\{0,1\}$), separated by a single space. For the $i$-th integer $x_i$:
- $x_i=0$ means the student’s $i$-th general education course is a **general education core course**.
- $x_i=1$ means the student’s $i$-th general education course is a **general education elective course**.
Output Format
Output one line containing a string:
- If the student has taken at least $3$ **general education core courses** and at least $3$ **general education elective courses**, output $\tt{Congratulations\ on\ graduation!}$
- Otherwise, output $\tt{Songfes\ in\ Japan...}$
Explanation/Hint
Translated by ChatGPT 5