class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: E = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: G = None
        self.x: H = None
        self.q: A = None
        self.p: G = None
        self.o: I = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: A = None
        self.t: B = None
        self.r: I = None
        self.q: G = None
        self.s: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: I = None
        self.p: G = None
        self.v: F = None
        self.y: A = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: I = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: I = None
        self.w: A = None
        self.z: E = None
        self.x: D = None
        self.t: B = None
        self.txt = txt

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

e = A("e")
i = B("i")
j = C("j")
d = D("d")
b = E("b")
g = F("g")
a = G("a")
c = H("c")
m = I("m")

e.q = c
e.t = b
e.x = g
i.s = a
i.z = a
i.p = a
i.x = c
i.q = e
i.o = m
i.u = b
j.u = b
j.w = e
j.t = i
j.r = m
j.s = m
j.q = a
d.p = g
d.q = a
b.s = d
b.x = m
b.p = a
b.v = g
b.y = e
b.o = e
g.r = m
g.o = m
a.u = g
a.p = m
a.r = m
c.p = d
c.x = d
c.q = m
c.w = e
c.z = b
c.t = i
m.w = g
m.z = i
assert e.q.t.o.z.z.u.r.w.txt == "
class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: E = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: G = None
        self.x: H = None
        self.q: A = None
        self.p: G = None
        self.o: I = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: A = None
        self.t: B = None
        self.r: I = None
        self.q: G = None
        self.s: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: I = None
        self.p: G = None
        self.v: F = None
        self.y: A = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: I = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: I = None
        self.w: A = None
        self.z: E = None
        self.x: D = None
        self.t: B = None
        self.txt = txt

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

e = A("e")
i = B("i")
j = C("j")
d = D("d")
b = E("b")
g = F("g")
a = G("a")
c = H("c")
m = I("m")

e.q = c
e.t = b
e.x = g
i.s = a
i.z = a
i.p = a
i.x = c
i.q = e
i.o = m
i.u = b
j.u = b
j.w = e
j.t = i
j.r = m
j.s = m
j.q = a
d.p = g
d.q = a
b.s = d
b.x = m
b.p = a
b.v = g
b.y = e
b.o = e
g.r = m
g.o = m
a.u = g
a.p = m
a.r = m
c.p = d
c.x = d
c.q = m
c.w = e
c.z = b
c.t = i
m.w = g
m.z = i
assert e.q.t.o.z.z.u.r.w.txt == "g"