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

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

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: H = None
        self.u: G = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: A = None
        self.o: A = None
        self.q: F = None
        self.z: B = None
        self.u: D = None
        self.r: D = None
        self.p: D = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: E = None
        self.t: A = None
        self.z: I = None
        self.r: I = None
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: B = None
        self.q: A = None
        self.v: E = None
        self.y: C = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.p: A = None
        self.v: I = None
        self.u: E = None
        self.s: D = None
        self.x: A = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: G = None
        self.u: D = None
        self.s: H = None
        self.w: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: H = None
        self.u: G = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: A = None
        self.o: A = None
        self.q: F = None
        self.z: B = None
        self.u: D = None
        self.r: D = None
        self.p: D = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: E = None
        self.t: A = None
        self.z: I = None
        self.r: I = None
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: B = None
        self.q: A = None
        self.v: E = None
        self.y: C = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.p: A = None
        self.v: I = None
        self.u: E = None
        self.s: D = None
        self.x: A = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: G = None
        self.u: D = None
        self.s: H = None
        self.w: G = None
        self.txt = txt

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

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