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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: H = None
        self.y: C = None
        self.z: A = None
        self.q: A = None
        self.p: C = None
        self.u: H = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: C = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: H = None
        self.y: C = None
        self.z: A = None
        self.q: A = None
        self.p: C = None
        self.u: H = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: C = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: A = None
        self.txt = txt

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

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

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