public class LimitedFactorNumber {
    public static boolean isLimitedFactorNumber(int x) {
        if (x <= 0) {
            return false; 
        }
        while (x % 2 == 0) {
            x /= 2;
        }
        while (x % 3 == 0) {
            x /= 3;
        }
        while (x % 5 == 0) {
            x /= 5;
        }
        return x == 1;
    }

    public static void main(String[] args) {
        // Test cases
        System.out.println("Example 1 --> " + isLimitedFactorNumber(6));  
        System.out.println("Example 2 --> " + isLimitedFactorNumber(1)); 
        System.out.println("Example 3 --> " + isLimitedFactorNumber(14)); 
    }
}