def escape(c):
    global PRINTABLE
    if (c in PRINTABLE):
        return c
    c = ord(c)
    if (c <= 255):
        return ('\\x' + ('%02.2x' % c))
    elif (c <= '\uffff'):
        return ('\\u' + ('%04.4x' % c))
    else:
        return ('\\U' + ('%08.8x' % c))
def escape(c):
    global PRINTABLE
    if (c in PRINTABLE):
        return c
    c = ord(c)
    if (c <= 255):
        return ('\\x' + ('%02.2x' % c))
    elif (c <= '\uffff'):
        return ('\\u' + ('%04.4x' % c))
    else:
        return ('\\U' + ('%08.8x' % c))