class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: H = None
        self.t: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: A = None
        self.v: A = None
        self.w: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: F = None
        self.p: A = None
        self.r: I = None
        self.q: C = None
        self.y: B = None
        self.t: C = None
        self.z: D = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: A = None
        self.v: A = None
        self.w: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: F = None
        self.p: A = None
        self.r: I = None
        self.q: C = None
        self.y: B = None
        self.t: C = None
        self.z: D = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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