for c in'EPGAEKDMCJLRGODKHBOCCOIJNOJ^AH'[input()%7^2::3]:print ord(c)-65