#10592: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh


yysyc (愚一宋奕辰)


var
n:longint;
begin
while not eof do begin
readln(n);
if n mod 5=0 then writeln('U');
if n mod 5=1 then writeln('G');
if n mod 5=2 then writeln('Y');
if n mod 5=3 then writeln('T');
if n mod 5=4 then writeln('I');
end;

end.