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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: E = None
        self.r: D = None
        self.z: A = None
        self.x: B = None
        self.v: A = None
        self.q: B = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: E = None
        self.r: D = None
        self.z: A = None
        self.x: B = None
        self.v: A = None
        self.q: B = None
        self.y: B = None
        self.txt = txt

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

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

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

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