class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: H = None
        self.w: H = None
        self.z: F = None
        self.q: F = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: H = None
        self.w: G = None
        self.r: C = None
        self.u: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: J = None
        self.t: B = None
        self.v: D = None
        self.x: C = None
        self.r: I = None
        self.o: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: H = None
        self.w: G = None
        self.r: C = None
        self.u: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: J = None
        self.t: B = None
        self.v: D = None
        self.x: C = None
        self.r: I = None
        self.o: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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

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

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