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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: C = None
        self.u: H = None
        self.p: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: J = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: C = None
        self.u: H = None
        self.p: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: J = None
        self.z: C = None
        self.txt = txt

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

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

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