Fl.java
import java.util.Scanner;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author cteam038
*/
public class Fl {
public static void main
(String [] args
) { Scanner scanner
= new Scanner
(System.
in); while (scanner.hasNext()) {
int n
= Integer.
parseInt(scanner.
nextLine().
substring(2)); int r = 0;
if (n == 1) {
r = 1;
continue;
}
int i = n + 1;
while(true) {
if (((n*i) % (i-n)) == 0) {
r++;
}
i++;
if ((i*i) > n*(2*i)) {
break;
}
// if (i*(i+1) > n*(2*i+1)) {
// break;
// }
}
/*
for (int i = 1; i <= n; i++) {
//System.out.println(i);
//System.out.println("ahoj" + (n*(i+1))%i);
if ((n * (i+1)) % i == 0) r++;
}*/
}
}
}