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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: D = None
        self.x: B = None
        self.o: B = None
        self.z: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: A = None
        self.r: B = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: D = None
        self.o: F = None
        self.txt = txt

d = A("d")
n = B("n")
g = C("g")
h = D("h")
k = E("k")
m = F("m")
j = G("j")
a = H("a")
e = I("e")
l = C("l")

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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: D = None
        self.x: B = None
        self.o: B = None
        self.z: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: A = None
        self.r: B = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: D = None
        self.o: F = None
        self.txt = txt

d = A("d")
n = B("n")
g = C("g")
h = D("h")
k = E("k")
m = F("m")
j = G("j")
a = H("a")
e = I("e")
l = C("l")

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