public class App {
public static void main(String[] args) throws Exception {
try (Scanner sc = new Scanner(System.in);) {
String inputText = sc.nextLine();
int num = Integer.parseInt(inputText);
long result = 1;
int start = num % 2 == 0 ? 2 : 1;
for (int i = start; i <= num; i += 2) {
result *= i;
}
System.out.println("result is " + result);
} catch (Exception e) {
// ...
}
}
}