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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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