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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: F = None
        self.q: C = None
        self.z: I = None
        self.p: H = None
        self.x: H = None
        self.o: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: E = None
        self.w: C = None
        self.o: D = None
        self.x: A = None
        self.u: A = None
        self.v: C = None
        self.y: E = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: E = None
        self.t: E = None
        self.o: A = None
        self.q: I = None
        self.w: G = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: F = None
        self.q: C = None
        self.z: I = None
        self.p: H = None
        self.x: H = None
        self.o: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: E = None
        self.w: C = None
        self.o: D = None
        self.x: A = None
        self.u: A = None
        self.v: C = None
        self.y: E = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: E = None
        self.t: E = None
        self.o: A = None
        self.q: I = None
        self.w: G = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: H = None
        self.txt = txt

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

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