def getPositionAtTime(t):
    """
    Simulation time t runs from 0 to 99

    First quarter: walking right from 50, 50 to 250, 50
    Second quarter: walking down from 250, 50 to 250, 250
    Third quarter: walking left from 250, 250 to 50, 250
    Fourth quarter: walking up from 50, 250 to 50, 50
    """
    if 0 <= t < 25:
        return 50 + ((t - 0) * 8), 50, 'right'
    elif 25 <= t < 50:
        return  250, 50 + ((t - 25) * 8), 'front'
    elif 50 <= t < 75:
        return 250 - ((t - 50) * 8), 250, 'left'
    elif 75 <= t < 100:
        return 50, 250 - ((t - 75) * 8), 'back'