def get_power_level(x, y, serial):
    """returns power level for the given x, y, and serial"""
    rack_id = x + 10
    power = (((rack_id*y) + serial) * rack_id)
    if power > 99:
        return (power // 100) % 10 - 5
    else:
        return -5