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

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: G = None
        self.s: C = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: C = None
        self.z: D = None
        self.w: I = None
        self.t: B = None
        self.x: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: D = None
        self.p: J = None
        self.y: A = None
        self.t: A = None
        self.s: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: C = None
        self.w: D = None
        self.t: H = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: G = None
        self.s: C = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: C = None
        self.z: D = None
        self.w: I = None
        self.t: B = None
        self.x: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: D = None
        self.p: J = None
        self.y: A = None
        self.t: A = None
        self.s: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: C = None
        self.w: D = None
        self.t: H = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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