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

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

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

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

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

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

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

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

i = A("i")
d = B("d")
l = C("l")
n = D("n")
k = E("k")
g = F("g")
f = G("f")
h = H("h")
e = F("e")
a = C("a")

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

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

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

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

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

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

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

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

i = A("i")
d = B("d")
l = C("l")
n = D("n")
k = E("k")
g = F("g")
f = G("f")
h = H("h")
e = F("e")
a = C("a")

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