n = 24;
for div = 1 : n
  if ( mod ( n, div ) == 0 )
      fprintf ( '%d', div )
  end
end
fprintf ( '\n' );