def decode(code):
    """
    Convert seat code into binary and then into int.
    :param code: str containing position info
    :return: int ID corresponding to position code
    """
    return int(code.replace('L', '0').replace('R', '1').replace('F', '0').replace('B', '1'), 2)