	.data
prompt:	.asciiz	"Enter your account login: "
inbuf:	.space 256
out1:	.asciiz "Your assignment 1 output is "
out2:	.asciiz "x"
	.text
main:	la $a0, prompt
	li $v0,4
	syscall
	la $a0, inbuf
	li $a1, 256
	li $v0, 8
	syscall
	la $a0, out1
	li $v0,4
	syscall
	la $s0, inbuf
loop:
	lb $s1, 0($s0)
	add $s0, $s0, 1
	beq $s1, 0, done
	beq $s1, 0xa, done
	srl $s2, $s1, 4
	and $s2, $s2, 0xf
	add $s2, $s2, 0x30
	sb $s2, out2
	la $a0, out2
	li $v0, 4
	syscall
	and $s2, $s1, 0xf
	add $s2, $s2, 0x30
	sb $s2, out2
	la $a0, out2
	li $v0, 4
	syscall
	j loop
done:
	li $t0, 0xa
	sb $t0, out2
	la $a0, out2
	li $v0, 4
	syscall
	li $v0, 0
	jr $ra
