class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: J = None
        self.y: H = None
        self.o: B = None
        self.v: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.r: J = None
        self.x: D = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: G = None
        self.v: C = None
        self.t: G = None
        self.q: A = None
        self.u: J = None
        self.w: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: I = None
        self.w: D = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: G = None
        self.u: C = None
        self.v: E = None
        self.x: D = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.r: J = None
        self.x: D = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: G = None
        self.v: C = None
        self.t: G = None
        self.q: A = None
        self.u: J = None
        self.w: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: I = None
        self.w: D = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: G = None
        self.u: C = None
        self.v: E = None
        self.x: D = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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