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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

k = A("k")
a = B("a")
i = C("i")
g = D("g")
l = E("l")
j = F("j")
d = G("d")
m = H("m")
h = G("h")
c = F("c")

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

k = A("k")
a = B("a")
i = C("i")
g = D("g")
l = E("l")
j = F("j")
d = G("d")
m = H("m")
h = G("h")
c = F("c")

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