class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.r: D = None
        self.y: E = None
        self.u: J = None
        self.p: H = None
        self.v: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: I = None
        self.v: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: E = None
        self.w: H = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: I = None
        self.v: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: E = None
        self.w: H = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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