class A:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: A = None
        self.w: C = None
        self.t: D = None
        self.q: J = None
        self.o: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: B = None
        self.v: B = None
        self.u: I = None
        self.w: G = None
        self.x: G = None
        self.y: I = None
        self.s: A = None
        self.t: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: A = None
        self.w: C = None
        self.t: D = None
        self.q: J = None
        self.o: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: B = None
        self.v: B = None
        self.u: I = None
        self.w: G = None
        self.x: G = None
        self.y: I = None
        self.s: A = None
        self.t: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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