for a in"MCDXL","MCDLX","MDCXL","MDCLX":print a+"IV\n%sVI"%a