#P16436. [XJTUPC 2026] 幽灵×毕业

[XJTUPC 2026] 幽灵×毕业

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." :::

Problem 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 1212 credits of general education courses, usually consisting of 33 general education core courses and 33 general education elective courses.

Now assume that all students have taken only 66 general education courses. The ii-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 33 general education core courses and at least 33 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 x1,x2,⋯ ,x6x_1,x_2,\cdots, x_6 (x1,x2⋯ ,x6∈{0,1}x_1,x_2\cdots,x_6\in\{0,1\}), separated by a single space. For the ii-th integer xix_i:

  • xi=0x_i=0 means the student’s ii-th general education course is a general education core course.
  • xi=1x_i=1 means the student’s ii-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 33 general education core courses and at least 33 general education elective courses, output Congratulations on graduation!\tt{Congratulations\ on\ graduation!}
  • Otherwise, output Songfes in Japan...\tt{Songfes\ in\ Japan...}
0 0 0 1 1 1
Congratulations on graduation!
0 1 0 0 0 0
Songfes in Japan...

Hint

Translated by ChatGPT 5