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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: B = None
        self.s: F = None
        self.y: B = None
        self.w: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: A = None
        self.txt = txt

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

k.q = e
k.y = e
k.s = d
k.u = d
k.p = c
k.w = m
k.x = b
m.y = g
m.v = c
m.o = h
c.z = d
c.w = k
n.v = m
n.z = m
n.y = m
n.w = m
n.s = h
d.s = m
d.z = h
h.t = b
h.p = c
h.s = d
h.x = e
h.v = n
h.z = k
j.u = n
e.t = j
e.q = h
b.s = j
b.q = k
g.s = j
g.q = k
assert e.q.z.x.s.txt == "
class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: E = None
        self.u: E = None
        self.p: C = None
        self.w: B = None
        self.x: I = None
        self.y: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: B = None
        self.s: F = None
        self.y: B = None
        self.w: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: A = None
        self.txt = txt

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

k.q = e
k.y = e
k.s = d
k.u = d
k.p = c
k.w = m
k.x = b
m.y = g
m.v = c
m.o = h
c.z = d
c.w = k
n.v = m
n.z = m
n.y = m
n.w = m
n.s = h
d.s = m
d.z = h
h.t = b
h.p = c
h.s = d
h.x = e
h.v = n
h.z = k
j.u = n
e.t = j
e.q = h
b.s = j
b.q = k
g.s = j
g.q = k
assert e.q.z.x.s.txt == "j"