class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: E = None
        self.x: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: G = None
        self.z: J = None
        self.x: G = None
        self.v: G = None
        self.y: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: D = None
        self.u: E = None
        self.y: D = None
        self.x: D = None
        self.w: H = None
        self.z: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: F = None
        self.o: H = None
        self.s: B = None
        self.v: G = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: B = None
        self.q: F = None
        self.txt = txt

b = A("b")
h = B("h")
a = C("a")
e = D("e")
n = E("n")
m = F("m")
d = G("d")
i = H("i")
g = I("g")
l = J("l")

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

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: G = None
        self.z: J = None
        self.x: G = None
        self.v: G = None
        self.y: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: D = None
        self.u: E = None
        self.y: D = None
        self.x: D = None
        self.w: H = None
        self.z: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: F = None
        self.o: H = None
        self.s: B = None
        self.v: G = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: B = None
        self.q: F = None
        self.txt = txt

b = A("b")
h = B("h")
a = C("a")
e = D("e")
n = E("n")
m = F("m")
d = G("d")
i = H("i")
g = I("g")
l = J("l")

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