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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: D = None
        self.x: B = None
        self.p: F = None
        self.v: D = None
        self.q: J = None
        self.t: G = None
        self.z: H = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: C = None
        self.q: A = None
        self.y: F = None
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: F = None
        self.s: D = None
        self.r: J = None
        self.v: H = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: D = None
        self.x: B = None
        self.p: F = None
        self.v: D = None
        self.q: J = None
        self.t: G = None
        self.z: H = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: C = None
        self.q: A = None
        self.y: F = None
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: F = None
        self.s: D = None
        self.r: J = None
        self.v: H = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

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

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