import java.io.*; public class Solution { public static void main(String[] args)throws IOException { int sum = 0; File file = new File("C:\\input.txt"); FileReader fr = new FileReader(file); BufferedReader reader = new BufferedReader(fr); int N = Integer.parseInt(reader.readLine()); int[] z = new int[N]; for(int a = 1; a <= N; a ++){ if(N%a == 0){ z[a-1] = a; System.out.println(z[a-1]); } } for(int b = 0; b