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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: C = None
        self.v: G = None
        self.t: A = None
        self.q: B = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: F = None
        self.q: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: A = None
        self.t: F = None
        self.r: G = None
        self.u: H = None
        self.q: E = None
        self.z: A = None
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: F = None
        self.q: G = None
        self.p: D = None
        self.v: I = None
        self.w: E = None
        self.t: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: C = None
        self.v: G = None
        self.t: A = None
        self.q: B = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: F = None
        self.q: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: A = None
        self.t: F = None
        self.r: G = None
        self.u: H = None
        self.q: E = None
        self.z: A = None
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: F = None
        self.q: G = None
        self.p: D = None
        self.v: I = None
        self.w: E = None
        self.t: H = None
        self.txt = txt

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

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