class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: C = None
        self.w: I = None
        self.s: H = None
        self.q: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: J = None
        self.r: F = None
        self.p: F = None
        self.v: A = None
        self.o: F = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: C = None
        self.y: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: E = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: E = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: A = None
        self.r: J = None
        self.q: E = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: J = None
        self.r: F = None
        self.p: F = None
        self.v: A = None
        self.o: F = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: C = None
        self.y: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: E = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: E = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: A = None
        self.r: J = None
        self.q: E = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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