class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: I = None
        self.u: H = None
        self.z: C = None
        self.x: C = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: A = None
        self.t: D = None
        self.q: E = None
        self.z: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: E = None
        self.o: B = None
        self.y: E = None
        self.z: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: A = None
        self.u: C = None
        self.y: H = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: I = None
        self.u: H = None
        self.z: C = None
        self.x: C = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: A = None
        self.t: D = None
        self.q: E = None
        self.z: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: E = None
        self.o: B = None
        self.y: E = None
        self.z: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: A = None
        self.u: C = None
        self.y: H = None
        self.q: E = None
        self.txt = txt

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

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