class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: F = None
        self.r: G = None
        self.y: I = None
        self.o: E = None
        self.s: H = None
        self.p: B = None
        self.q: H = None
        self.v: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: C = None
        self.u: G = None
        self.t: B = None
        self.p: F = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: I = None
        self.y: F = None
        self.w: A = None
        self.x: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: B = None
        self.o: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: C = None
        self.u: G = None
        self.t: B = None
        self.p: F = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: I = None
        self.y: F = None
        self.w: A = None
        self.x: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: B = None
        self.o: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

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