class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: C = None
        self.x: B = None
        self.t: D = None
        self.p: C = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: C = None
        self.y: E = None
        self.r: G = None
        self.s: B = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: C = None
        self.z: D = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: C = None
        self.s: B = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: C = None
        self.r: G = None
        self.z: E = None
        self.u: B = None
        self.p: C = None
        self.txt = txt

k = A("k")
j = B("j")
m = C("m")
c = D("c")
b = E("b")
f = F("f")
d = G("d")
n = H("n")

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: C = None
        self.y: E = None
        self.r: G = None
        self.s: B = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: C = None
        self.z: D = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: C = None
        self.s: B = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: C = None
        self.r: G = None
        self.z: E = None
        self.u: B = None
        self.p: C = None
        self.txt = txt

k = A("k")
j = B("j")
m = C("m")
c = D("c")
b = E("b")
f = F("f")
d = G("d")
n = H("n")

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