class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: H = None
        self.v: F = None
        self.t: H = None
        self.o: H = None
        self.s: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: D = None
        self.t: G = None
        self.u: G = None
        self.w: G = None
        self.z: A = None
        self.p: E = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: E = None
        self.s: C = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: D = None
        self.t: G = None
        self.u: G = None
        self.w: G = None
        self.z: A = None
        self.p: E = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: E = None
        self.s: C = None
        self.z: C = None
        self.txt = txt

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

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