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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: D = None
        self.t: E = None
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: A = None
        self.w: E = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: D = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: D = None
        self.t: E = None
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: A = None
        self.w: E = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: D = None
        self.q: A = None
        self.txt = txt

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

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