import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = Long.parseLong(sc.next()); long temp = n, sum = 1, tnum; for(int i = 2; i <= temp; i++) { if(temp % i == 0) { tnum = 1; while(temp % i == 0) { temp /= i; tnum = tnum * i + tnum; } sum *= tnum; } } System.out.println(sum); } }