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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

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