class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: B = None
        self.q: C = None
        self.o: F = None
        self.s: H = None
        self.v: G = None
        self.w: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: F = None
        self.y: E = None
        self.r: A = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: C = None
        self.r: B = None
        self.s: E = None
        self.w: A = None
        self.o: B = None
        self.u: C = None
        self.v: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: E = None
        self.y: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: B = None
        self.u: G = None
        self.w: D = None
        self.p: E = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: F = None
        self.y: E = None
        self.r: A = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: C = None
        self.r: B = None
        self.s: E = None
        self.w: A = None
        self.o: B = None
        self.u: C = None
        self.v: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: E = None
        self.y: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: B = None
        self.u: G = None
        self.w: D = None
        self.p: E = None
        self.z: B = None
        self.txt = txt

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

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