def toAssembly(instr: int) -> (str):
    """Returns assembly language translation of machine language instruction `instr`"""
    mnemonic = ['HLT', 'ADD', 'SUB', 'STA', 'LDA', 'BRA', 'BRZ', 'INP', 'OUT']
    opcode = instr // 100
    operand = instr % 100
    if operand == 0 or opcode == 0:
        address = ''
    else:
        address = ' ' + str(operand)
    return mnemonic[opcode] + address