class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: F = None
        self.x: F = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: B = None
        self.o: G = None
        self.z: G = None
        self.w: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.z: E = None
        self.r: E = None
        self.y: E = None
        self.p: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: F = None
        self.x: F = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: B = None
        self.o: G = None
        self.z: G = None
        self.w: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.z: E = None
        self.r: E = None
        self.y: E = None
        self.p: F = None
        self.txt = txt

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

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