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

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

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: F = None
        self.u: B = None
        self.v: C = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: A = None
        self.p: G = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: B = None
        self.q: B = None
        self.t: J = None
        self.v: H = None
        self.w: G = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: F = None
        self.u: B = None
        self.v: C = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: A = None
        self.p: G = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: B = None
        self.q: B = None
        self.t: J = None
        self.v: H = None
        self.w: G = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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