class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: E = None
        self.v: F = None
        self.r: G = None
        self.o: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: F = None
        self.w: H = None
        self.z: G = None
        self.x: E = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: H = None
        self.s: F = None
        self.v: C = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: A = None
        self.r: C = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: G = None
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: H = None
        self.w: C = None
        self.r: H = None
        self.z: E = None
        self.p: D = None
        self.t: A = None
        self.txt = txt

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

b = A("b")
e = B("e")
d = C("d")
l = D("l")
h = E("h")
g = F("g")
i = G("i")
c = H("c")
a = F("a")
n = F("n")

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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: F = None
        self.w: H = None
        self.z: G = None
        self.x: E = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: H = None
        self.s: F = None
        self.v: C = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: A = None
        self.r: C = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: G = None
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: H = None
        self.w: C = None
        self.r: H = None
        self.z: E = None
        self.p: D = None
        self.t: A = None
        self.txt = txt

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

b = A("b")
e = B("e")
d = C("d")
l = D("l")
h = E("h")
g = F("g")
i = G("i")
c = H("c")
a = F("a")
n = F("n")

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