class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: C = None
        self.v: B = None
        self.t: H = None
        self.o: C = None
        self.r: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: F = None
        self.p: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: F = None
        self.y: F = None
        self.txt = txt

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

e = A("e")
k = B("k")
j = C("j")
f = D("f")
l = E("l")
m = F("m")
n = G("n")
d = H("d")
h = C("h")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: F = None
        self.p: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: F = None
        self.y: F = None
        self.txt = txt

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

e = A("e")
k = B("k")
j = C("j")
f = D("f")
l = E("l")
m = F("m")
n = G("n")
d = H("d")
h = C("h")

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