public boolean isPalindrome(int x) {
		if (x < 0)
			return false;
		if (x >= 0 && x <= 9)
			return true;
		int y = 0;
		int o = x;
		while (x > 0) {
			y = 10 * y + (x % 10);
			if (y < 0) return false;// probably y > MAX_VALUE
			x /= 10;
		}
		return o == y;
	}