class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: B = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: B = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: A = None
        self.t: B = None
        self.o: I = None
        self.y: G = None
        self.v: F = None
        self.u: H = None
        self.r: I = None
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: B = None
        self.u: I = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: A = None
        self.y: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: D = None
        self.y: H = None
        self.txt = txt

n = A("n")
j = B("j")
e = C("e")
i = D("i")
b = E("b")
l = F("l")
h = G("h")
g = H("g")
m = I("m")
k = G("k")

n.x = e
n.w = j
n.s = g
j.x = n
e.p = l
e.o = j
e.x = j
i.q = h
i.z = n
i.t = j
i.o = m
i.r = m
i.y = k
i.v = l
i.u = g
i.w = e
b.z = g
b.v = j
b.u = m
b.y = m
l.u = g
h.v = e
h.q = i
g.z = l
g.t = n
g.y = e
m.w = j
m.z = i
m.y = g
k.v = e
k.q = i
assert j.x.s.z.u.txt == "
class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: B = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: B = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: A = None
        self.t: B = None
        self.o: I = None
        self.y: G = None
        self.v: F = None
        self.u: H = None
        self.r: I = None
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: B = None
        self.u: I = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: A = None
        self.y: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: D = None
        self.y: H = None
        self.txt = txt

n = A("n")
j = B("j")
e = C("e")
i = D("i")
b = E("b")
l = F("l")
h = G("h")
g = H("g")
m = I("m")
k = G("k")

n.x = e
n.w = j
n.s = g
j.x = n
e.p = l
e.o = j
e.x = j
i.q = h
i.z = n
i.t = j
i.o = m
i.r = m
i.y = k
i.v = l
i.u = g
i.w = e
b.z = g
b.v = j
b.u = m
b.y = m
l.u = g
h.v = e
h.q = i
g.z = l
g.t = n
g.y = e
m.w = j
m.z = i
m.y = g
k.v = e
k.q = i
assert j.x.s.z.u.txt == "g"