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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: A = None
        self.w: E = None
        self.y: C = None
        self.u: C = None
        self.r: I = None
        self.v: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: A = None
        self.w: E = None
        self.y: C = None
        self.u: C = None
        self.r: I = None
        self.v: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

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

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

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