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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: A = None
        self.o: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: H = None
        self.o: B = None
        self.p: B = None
        self.z: C = None
        self.q: C = None
        self.r: F = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.r: A = None
        self.u: A = None
        self.t: E = None
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: E = None
        self.w: F = None
        self.q: C = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: A = None
        self.o: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: H = None
        self.o: B = None
        self.p: B = None
        self.z: C = None
        self.q: C = None
        self.r: F = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.r: A = None
        self.u: A = None
        self.t: E = None
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: E = None
        self.w: F = None
        self.q: C = None
        self.z: C = None
        self.txt = txt

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

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

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