class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: B = None
        self.z: D = None
        self.s: I = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: E = None
        self.q: G = None
        self.p: G = None
        self.y: G = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: B = None
        self.z: D = None
        self.s: I = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: E = None
        self.q: G = None
        self.p: G = None
        self.y: G = None
        self.z: E = None
        self.txt = txt

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

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