class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: F = None
        self.y: E = None
        self.p: H = None
        self.o: I = None
        self.x: C = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: D = None
        self.o: H = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: J = None
        self.v: A = None
        self.o: G = None
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: H = None
        self.q: D = None
        self.y: I = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: E = None
        self.y: A = None
        self.r: G = None
        self.w: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: I = None
        self.w: E = None
        self.y: G = None
        self.z: F = None
        self.v: A = None
        self.o: E = None
        self.u: A = None
        self.x: G = None
        self.t: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: D = None
        self.o: H = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: J = None
        self.v: A = None
        self.o: G = None
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: H = None
        self.q: D = None
        self.y: I = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: E = None
        self.y: A = None
        self.r: G = None
        self.w: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: I = None
        self.w: E = None
        self.y: G = None
        self.z: F = None
        self.v: A = None
        self.o: E = None
        self.u: A = None
        self.x: G = None
        self.t: G = None
        self.txt = txt

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

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