import java.util.Arrays;
import java.util.Scanner;

public class getPrime {

public static void main(String[] args) {

int a = 0;
boolean g = false;
System.out.print("Sayi Girin: ");
Scanner scan = new Scanner(System.in);

if(scan.hasNextInt()){
g = true;
a = scan.nextInt();
}
scan.close();

if (g){
int key = 0;
int count = 0;
String primes = "{";
for (int i = 2; i < a; i++) {
if (a % i == 0){
count++;
primes = primes + i + ",";
key++;
}
}
primes = primes.substring(0, primes.length() - 1);
primes = primes + "}";
System.out.println("Toplam " + count + " Tane Asil Sayi Var");
System.out.println("Asal Sayilarin Listesi: " + primes);
}


}
}