class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: J = None
        self.z: E = None
        self.p: B = None
        self.u: I = None
        self.r: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: F = None
        self.y: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: D = None
        self.p: A = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: F = None
        self.y: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: D = None
        self.p: A = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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