class ALU {

	public String integerRepresentation (String number, int length) {
		long value = Integer.parseInt(number);
		
		boolean isNegative=false;
		if (value<0){
			value=-value;
			isNegative = true;
		}
		
		StringBuilder builder = new StringBuilder();

		for(int i=0;i<length;i++){
			long thisPosition = value /2;
			builder.append(value-(thisPosition*2));
			value=value>>1;
		}
		builder=builder.reverse();
		return get2sComplement(builder.toString(), isNegative);
		
	}

}