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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: F = None
        self.x: F = None
        self.z: C = None
        self.y: G = None
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: J = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: F = None
        self.r: G = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: F = None
        self.x: F = None
        self.z: C = None
        self.y: G = None
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: J = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: F = None
        self.r: G = None
        self.q: D = None
        self.txt = txt

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

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

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

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