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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: G = None
        self.q: F = None
        self.y: E = None
        self.p: B = None
        self.u: E = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: E = None
        self.q: F = None
        self.o: H = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: J = None
        self.s: A = None
        self.v: I = None
        self.p: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: A = None
        self.t: A = None
        self.txt = txt

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

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

e.u = g
e.z = a
e.t = l
e.x = l
e.r = h
e.q = h
e.w = c
e.p = j
e.s = i
h.p = i
h.r = c
h.y = e
h.o = e
h.v = l
h.w = l
h.z = b
h.q = b
h.u = j
h.t = a
b.x = h
b.p = h
b.w = a
b.q = k
b.y = l
b.u = l
b.r = i
g.w = l
g.p = l
g.q = k
g.o = i
g.v = h
l.w = a
l.y = j
l.s = e
l.v = c
l.p = c
k.y = j
k.r = j
k.x = h
k.z = e
k.t = c
a.p = c
i.s = k
i.o = c
i.u = a
i.v = l
c.x = b
c.y = e
c.t = e
j.w = l
j.z = l
assert c.t.u.q.t.t.txt == "
class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: G = None
        self.t: E = None
        self.r: B = None
        self.w: I = None
        self.p: J = None
        self.q: B = None
        self.x: E = None
        self.s: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: G = None
        self.q: F = None
        self.y: E = None
        self.p: B = None
        self.u: E = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: E = None
        self.q: F = None
        self.o: H = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: J = None
        self.s: A = None
        self.v: I = None
        self.p: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: A = None
        self.t: A = None
        self.txt = txt

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

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

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