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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: A = None
        self.t: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: E = None
        self.s: A = None
        self.t: B = None
        self.u: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: B = None
        self.u: E = None
        self.y: B = None
        self.r: A = None
        self.t: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: A = None
        self.t: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: E = None
        self.s: A = None
        self.t: B = None
        self.u: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: B = None
        self.u: E = None
        self.y: B = None
        self.r: A = None
        self.t: B = None
        self.txt = txt

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

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