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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: D = None
        self.o: E = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: B = None
        self.q: B = None
        self.y: H = None
        self.p: H = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: E = None
        self.x: B = None
        self.p: D = None
        self.t: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: D = None
        self.o: E = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: B = None
        self.q: B = None
        self.y: H = None
        self.p: H = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: E = None
        self.x: B = None
        self.p: D = None
        self.t: B = None
        self.txt = txt

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

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