temp1 = '0' if HL >= 30000 then temp1 = temp1 + 3 HL = HL - 30000 if HL >= 20000 then temp1 = temp1 + 2 HL = HL - 20000 if HL >= 10000 then temp1 = temp1 + 1 HL = HL - 10000
temp2 = '0' if HL >= 5000 then temp = temp + 5 HL = HL - 5000 if HL >= 3000 then temp = temp + 3 HL = HL - 3000 if HL >= 2000 then temp = temp + 2 HL = HL - 2000 if HL >= 1000 then temp = temp + 1 HL = HL - 1000