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

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: J = None
        self.q: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: E = None
        self.y: A = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: D = None
        self.t: D = None
        self.o: E = None
        self.z: H = None
        self.p: F = None
        self.v: D = None
        self.u: H = None
        self.q: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: J = None
        self.q: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: E = None
        self.y: A = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: D = None
        self.t: D = None
        self.o: E = None
        self.z: H = None
        self.p: F = None
        self.v: D = None
        self.u: H = None
        self.q: F = None
        self.txt = txt

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

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