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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: F = None
        self.z: G = None
        self.q: C = None
        self.p: J = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: G = None
        self.u: H = None
        self.p: E = None
        self.x: F = None
        self.w: B = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.o: E = None
        self.u: D = None
        self.p: A = None
        self.q: C = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: H = None
        self.v: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: G = None
        self.w: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: F = None
        self.z: G = None
        self.q: C = None
        self.p: J = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: G = None
        self.u: H = None
        self.p: E = None
        self.x: F = None
        self.w: B = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.o: E = None
        self.u: D = None
        self.p: A = None
        self.q: C = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: H = None
        self.v: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: G = None
        self.w: I = None
        self.txt = txt

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

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