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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: E = None
        self.y: E = None
        self.r: J = None
        self.q: C = None
        self.t: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: F = None
        self.z: C = None
        self.y: A = None
        self.w: C = None
        self.s: A = None
        self.u: A = None
        self.t: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.y: G = None
        self.x: B = None
        self.w: G = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: J = None
        self.y: A = None
        self.w: J = None
        self.v: H = None
        self.p: E = None
        self.x: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: E = None
        self.y: E = None
        self.r: J = None
        self.q: C = None
        self.t: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: F = None
        self.z: C = None
        self.y: A = None
        self.w: C = None
        self.s: A = None
        self.u: A = None
        self.t: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.y: G = None
        self.x: B = None
        self.w: G = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: J = None
        self.y: A = None
        self.w: J = None
        self.v: H = None
        self.p: E = None
        self.x: J = None
        self.txt = txt

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

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

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