class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: C = None
        self.w: C = None
        self.o: D = None
        self.y: B = None
        self.p: G = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: G = None
        self.p: G = None
        self.v: D = None
        self.r: H = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: E = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: A = None
        self.o: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: G = None
        self.p: G = None
        self.v: D = None
        self.r: H = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: E = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: A = None
        self.o: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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