import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Scanner;

/**
 * Solution to Magnesium Supplementation
 * 
 * @author vanb
 */
public class magnesium_vanb
{
    /** Input. */
    private static Scanner sc;
    
    /** Output. */
    private static PrintStream ps;
    
    /**
     * Do it!
     */
    private void doit()
    {
        long n = sc.nextLong();
        long k = sc.nextLong();
        long p = sc.nextLong();
        
        HashSet<Long> seen = new HashSet<Long>();
        ArrayList<Long> prescriptions = new ArrayList<Long>();
        for( long i=1; i*i<=n; i++ )
        {
            if( n%i==0 )
            {
                long j = n/i;
                if( i<=p && j<=k && !seen.contains( j ) ) 
                {
                    prescriptions.add( j );
                    seen.add( j );
                }
                if( j<=p && i<=k && !seen.contains( i ) ) 
                {
                    prescriptions.add( i );
                    seen.add( i );
                }            
            }
        }
        
        Collections.sort( prescriptions );
        ps.println( prescriptions.size() );
        for( Long prescription : prescriptions ) ps.println( prescription );
    }
        
    /**
     * Main.
     * 
     * @param args unused
     * @throws Exception
     */
    public static void main( String[] args ) throws Exception
    {
        sc = new Scanner( System.in );
        ps = System.out;
        
        new magnesium_vanb().doit();
    }

}
