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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: E = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.w: E = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: H = None
        self.p: I = None
        self.y: I = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: I = None
        self.z: F = None
        self.q: D = None
        self.v: A = None
        self.y: F = None
        self.t: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: E = None
        self.z: B = None
        self.t: A = None
        self.x: B = None
        self.q: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: I = None
        self.p: E = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: E = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.w: E = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: H = None
        self.p: I = None
        self.y: I = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: I = None
        self.z: F = None
        self.q: D = None
        self.v: A = None
        self.y: F = None
        self.t: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: E = None
        self.z: B = None
        self.t: A = None
        self.x: B = None
        self.q: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: I = None
        self.p: E = None
        self.z: B = None
        self.txt = txt

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

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