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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: F = None
        self.v: C = None
        self.t: I = None
        self.q: G = None
        self.s: I = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: D = None
        self.p: F = None
        self.x: I = None
        self.t: G = None
        self.r: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: F = None
        self.y: I = None
        self.t: I = None
        self.v: B = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: J = None
        self.v: J = None
        self.q: J = None
        self.w: H = None
        self.o: B = None
        self.y: H = None
        self.r: E = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: H = None
        self.r: A = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: F = None
        self.v: C = None
        self.t: I = None
        self.q: G = None
        self.s: I = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: D = None
        self.p: F = None
        self.x: I = None
        self.t: G = None
        self.r: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: F = None
        self.y: I = None
        self.t: I = None
        self.v: B = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: J = None
        self.v: J = None
        self.q: J = None
        self.w: H = None
        self.o: B = None
        self.y: H = None
        self.r: E = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: H = None
        self.r: A = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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