public static boolean isArmstrong(int input){
        int n = input;
        int numOfDigits = (int)Math.log10((double)n) + 1;
        int sum = 0;
        while(n != 0){
            int digit = n % 10;
            sum += Math.pow(digit, numOfDigits);
            n = n / 10;
            if(sum > input) return false;
        }
        return sum == input;
    }