class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: C = None
        self.t: E = None
        self.p: F = None
        self.u: J = None
        self.w: J = None
        self.r: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: G = None
        self.q: D = None
        self.t: F = None
        self.w: E = None
        self.r: J = None
        self.u: G = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: G = None
        self.w: F = None
        self.t: E = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: I = None
        self.z: G = None
        self.t: B = None
        self.v: B = None
        self.s: F = None
        self.o: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: B = None
        self.u: F = None
        self.w: B = None
        self.x: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: E = None
        self.z: H = None
        self.s: C = None
        self.w: E = None
        self.q: B = None
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: G = None
        self.q: D = None
        self.t: F = None
        self.w: E = None
        self.r: J = None
        self.u: G = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: G = None
        self.w: F = None
        self.t: E = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: I = None
        self.z: G = None
        self.t: B = None
        self.v: B = None
        self.s: F = None
        self.o: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: B = None
        self.u: F = None
        self.w: B = None
        self.x: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: E = None
        self.z: H = None
        self.s: C = None
        self.w: E = None
        self.q: B = None
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: C = None
        self.txt = txt

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

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