class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: F = None
        self.r: E = None
        self.o: D = None
        self.q: F = None
        self.x: B = None
        self.t: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: B = None
        self.u: C = None
        self.o: B = None
        self.t: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: F = None
        self.u: F = None
        self.y: C = None
        self.t: A = None
        self.w: G = None
        self.txt = txt

c = A("c")
d = B("d")
l = C("l")
n = D("n")
f = E("f")
h = F("h")
j = G("j")
b = H("b")
a = E("a")
e = E("e")

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: B = None
        self.u: C = None
        self.o: B = None
        self.t: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: F = None
        self.u: F = None
        self.y: C = None
        self.t: A = None
        self.w: G = None
        self.txt = txt

c = A("c")
d = B("d")
l = C("l")
n = D("n")
f = E("f")
h = F("h")
j = G("j")
b = H("b")
a = E("a")
e = E("e")

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