class ALU {

	public String ariRightShift (String operand, int n) {
		
		StringBuilder builder = new StringBuilder();
		
		char leadingLetter = operand.charAt(0);
		
		for(int i=0;i<n;i++){
			builder.append(leadingLetter);
		}
		
		for(int i=0;i<operand.length()-n;i++){
			builder.append(operand.charAt(i));
		}
		builder.setLength(operand.length());
		return builder.toString();
	}

}

class TestALU {

	 ALU ALU;

	@Test
	public void testAriRightShift(){

		assertEquals("11110011",ALU.ariRightShift("10011011", 3));
	}

}