program rim(input,output);
var k:1..9;
begin
  write('vvedite k: '); read(k);
  case k of
    1: writeln('I');
    2: writeln('II');
    3: writeln('III');
    4: writeln('IV');
    5: writeln('V');
    6: writeln('VI');
    7: writeln('VII');
    8: writeln('VIII');
    9: writeln('IX')
   end
end.