class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: G = None
        self.t: F = None
        self.q: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: E = None
        self.o: H = None
        self.q: G = None
        self.v: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: H = None
        self.r: C = None
        self.q: E = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: A = None
        self.q: A = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: C = None
        self.w: E = None
        self.x: A = None
        self.r: I = None
        self.t: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: E = None
        self.o: H = None
        self.q: G = None
        self.v: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: H = None
        self.r: C = None
        self.q: E = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: A = None
        self.q: A = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: C = None
        self.w: E = None
        self.x: A = None
        self.r: I = None
        self.t: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: H = None
        self.txt = txt

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

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

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