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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.s: J = None
        self.y: F = None
        self.x: J = None
        self.v: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: J = None
        self.p: A = None
        self.o: A = None
        self.z: J = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: G = None
        self.y: D = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: D = None
        self.u: B = None
        self.z: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.t: B = None
        self.y: F = None
        self.u: C = None
        self.z: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.s: J = None
        self.y: F = None
        self.x: J = None
        self.v: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: J = None
        self.p: A = None
        self.o: A = None
        self.z: J = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: G = None
        self.y: D = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: D = None
        self.u: B = None
        self.z: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.t: B = None
        self.y: F = None
        self.u: C = None
        self.z: A = None
        self.txt = txt

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

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

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