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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: I = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: H = None
        self.t: E = None
        self.s: F = None
        self.x: G = None
        self.p: C = None
        self.q: A = None
        self.u: C = None
        self.y: J = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: B = None
        self.w: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: I = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: H = None
        self.t: E = None
        self.s: F = None
        self.x: G = None
        self.p: C = None
        self.q: A = None
        self.u: C = None
        self.y: J = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: B = None
        self.w: D = None
        self.txt = txt

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

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

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