class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: D = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: H = None
        self.y: F = None
        self.p: F = None
        self.z: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: I = None
        self.p: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: F = None
        self.o: H = None
        self.t: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: H = None
        self.y: F = None
        self.p: F = None
        self.z: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: I = None
        self.p: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: F = None
        self.o: H = None
        self.t: D = None
        self.txt = txt

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

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

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