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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: F = None
        self.v: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: F = None
        self.v: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: D = None
        self.txt = txt

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

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