import math


def calc_position_reduction(pos_qty: int, percent: float):
    """Calculate the quantity that should be immediately sold and the quantity that
    should be held with an STC stop market in place. Returns sell / keep quantities"""
    sell_qty = math.ceil(pos_qty * percent)
    keep_qty = pos_qty - sell_qty
    return sell_qty, keep_qty