class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: E = None
        self.r: D = None
        self.t: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: F = None
        self.r: B = None
        self.t: B = None
        self.z: B = None
        self.p: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: C = None
        self.u: G = None
        self.w: G = None
        self.txt = txt

f = A("f")
c = B("c")
j = C("j")
k = D("k")
d = E("d")
a = F("a")
m = G("m")
h = H("h")
l = H("l")

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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: F = None
        self.r: B = None
        self.t: B = None
        self.z: B = None
        self.p: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: C = None
        self.u: G = None
        self.w: G = None
        self.txt = txt

f = A("f")
c = B("c")
j = C("j")
k = D("k")
d = E("d")
a = F("a")
m = G("m")
h = H("h")
l = H("l")

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