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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: I = None
        self.x: H = None
        self.z: C = None
        self.w: H = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: A = None
        self.o: B = None
        self.t: J = None
        self.z: D = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: D = None
        self.t: I = None
        self.w: B = None
        self.x: J = None
        self.u: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.r: J = None
        self.s: F = None
        self.u: D = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: H = None
        self.z: B = None
        self.u: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: G = None
        self.v: G = None
        self.r: B = None
        self.p: E = None
        self.y: I = None
        self.t: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: I = None
        self.x: H = None
        self.z: C = None
        self.w: H = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: A = None
        self.o: B = None
        self.t: J = None
        self.z: D = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: D = None
        self.t: I = None
        self.w: B = None
        self.x: J = None
        self.u: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.r: J = None
        self.s: F = None
        self.u: D = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: H = None
        self.z: B = None
        self.u: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: G = None
        self.v: G = None
        self.r: B = None
        self.p: E = None
        self.y: I = None
        self.t: F = None
        self.txt = txt

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

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