class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: H = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: F = None
        self.r: F = None
        self.y: H = None
        self.p: C = None
        self.t: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: F = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: C = None
        self.s: H = None
        self.y: E = None
        self.q: H = None
        self.w: A = None
        self.u: F = None
        self.o: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: F = None
        self.r: F = None
        self.y: H = None
        self.p: C = None
        self.t: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: F = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: C = None
        self.s: H = None
        self.y: E = None
        self.q: H = None
        self.w: A = None
        self.u: F = None
        self.o: D = None
        self.txt = txt

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

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

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