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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: H = None
        self.p: D = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: I = None
        self.q: E = None
        self.s: G = None
        self.x: B = None
        self.v: I = None
        self.p: H = None
        self.r: I = None
        self.t: D = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: I = None
        self.r: F = None
        self.z: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: J = None
        self.r: B = None
        self.q: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: C = None
        self.z: A = None
        self.q: I = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: H = None
        self.p: D = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: I = None
        self.q: E = None
        self.s: G = None
        self.x: B = None
        self.v: I = None
        self.p: H = None
        self.r: I = None
        self.t: D = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: I = None
        self.r: F = None
        self.z: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: J = None
        self.r: B = None
        self.q: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: C = None
        self.z: A = None
        self.q: I = None
        self.s: C = None
        self.txt = txt

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

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