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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: H = None
        self.o: E = None
        self.u: G = None
        self.y: B = None
        self.w: F = None
        self.s: G = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: C = None
        self.p: H = None
        self.o: G = None
        self.r: C = None
        self.v: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: A = None
        self.y: B = None
        self.u: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: H = None
        self.o: E = None
        self.u: G = None
        self.y: B = None
        self.w: F = None
        self.s: G = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: C = None
        self.p: H = None
        self.o: G = None
        self.r: C = None
        self.v: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: A = None
        self.y: B = None
        self.u: B = None
        self.txt = txt

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

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

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