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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: I = None
        self.x: A = None
        self.z: C = None
        self.y: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: C = None
        self.o: H = None
        self.v: I = None
        self.w: G = None
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: H = None
        self.p: H = None
        self.s: E = None
        self.y: D = None
        self.z: B = None
        self.r: G = None
        self.q: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: I = None
        self.x: A = None
        self.z: C = None
        self.y: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: C = None
        self.o: H = None
        self.v: I = None
        self.w: G = None
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: H = None
        self.p: H = None
        self.s: E = None
        self.y: D = None
        self.z: B = None
        self.r: G = None
        self.q: H = None
        self.txt = txt

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

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