def parse_tile(tile_string):
    """
    >>> parse_tile("esew")
    (1, -1)
    >>> parse_tile("esewnw")
    (0, 0)
    >>> parse_tile("nwwswee")
    (0, 0)
    """
    data = list(tile_string)
    cur_pos_ew = 0
    cur_pos_ns = 0
    while len(data) != 0:
        c1 = data.pop(0)
        if c1 == 'w':
            cur_pos_ew -= 1
        elif c1 == 'e':
            cur_pos_ew += 1
        elif c1 == 's':
            c2 = data.pop(0)
            cur_pos_ns -= 1
            if c2 == 'e':
                cur_pos_ew += 1
            pass
        elif c1 == 'n':
            c2 = data.pop(0)
            cur_pos_ns += 1
            if c2 == 'w':
                cur_pos_ew -= 1
            pass
        else:
            raise RuntimeError("")
    return cur_pos_ew, cur_pos_ns