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

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

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: B = None
        self.y: B = None
        self.s: D = None
        self.q: B = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: F = None
        self.r: E = None
        self.w: A = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: C = None
        self.s: I = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: J = None
        self.x: A = None
        self.p: E = None
        self.s: D = None
        self.z: H = None
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: I = None
        self.o: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: B = None
        self.y: B = None
        self.s: D = None
        self.q: B = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: F = None
        self.r: E = None
        self.w: A = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: C = None
        self.s: I = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: J = None
        self.x: A = None
        self.p: E = None
        self.s: D = None
        self.z: H = None
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: I = None
        self.o: F = None
        self.txt = txt

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

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