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();
	}

}