class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: D = None
        self.x: B = None
        self.p: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: H = None
        self.t: I = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: D = None
        self.x: B = None
        self.p: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: H = None
        self.t: I = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

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