public static void main(String[] args) {
		Scanner keyboard = new Scanner(System.in);
		int factorion = -1;
		while (factorion < 0) {
			System.out.print("Please enter a positive integer (>=0): ");
			factorion = keyboard.nextInt();
		}
		int secondFactorion = 0;
		for (int count = 0; count < Integer.toString(factorion).length(); count++) {
			int factorial = 1; 
			for (int counter = Integer.parseInt(Integer.toString(factorion).substring(count,count+1)), insideCount = 1; insideCount <= counter; insideCount++) {
				factorial *= insideCount;
			}
			secondFactorion += factorial;
		}
		System.out.println("The integer " + factorion + ((factorion == secondFactorion)? " is" : " is not") + " a factorion.");
	}