import math


def text_clip_center(text, width):
    """
    Center-clip a string `text` to width `width`. That is, print starting from
    the center, out.
    """
    clip = 0
    if len(text) > width:
        clip = len(text)-width
    clip1 = math.ceil(clip/2)
    clip2 = clip-clip1
    return text[clip1:][:-clip2]