@staticmethod
def getFitting(fitting, requirement, file):
    """
        Get ponies that fit the terminal
        
        @param  fitting:add(str)→void  The set to fill
        @param  requirement:int        The maximum allowed value
        @param  file:istream           The file with all data
        """
    data = file.read()
    ptr = 0
    while data[ptr] != 47:
        ptr += 1
    ptr += 1
    size = 0
    while data[ptr] != 47:
        size = size * 10 - (data[ptr] & 15)
        ptr += 1
    ptr += 1
    jump = ptr - size
    stop = 0
    backjump = 0
    while ptr < jump:
        size = 0
        while data[ptr] != 47:
            size = size * 10 - (data[ptr] & 15)
            ptr += 1
        ptr += 1
        if -size > requirement:
            if backjump > 0:
                ptr = backjump
                while data[ptr] != 47:
                    stop = stop * 10 - (data[ptr] & 15)
                    ptr += 1
                stop = -stop
            break
        backjump = ptr
        while data[ptr] != 47:
            ptr += 1
        ptr += 1
    if ptr == jump:
        stop = len(data)
    else:
        ptr = jump
        stop += ptr
    passed = data[jump:stop].decode('utf8', 'replace').split('/')
    for pony in passed:
        fitting.add(pony)
