class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: C = None
        self.v: E = None
        self.s: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: D = None
        self.v: D = None
        self.q: A = None
        self.x: D = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: B = None
        self.o: E = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: D = None
        self.v: D = None
        self.q: A = None
        self.x: D = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: B = None
        self.o: E = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

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