class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: F = None
        self.t: F = None
        self.p: F = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: G = None
        self.x: D = None
        self.r: G = None
        self.w: B = None
        self.q: F = None
        self.y: E = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: G = None
        self.s: F = None
        self.v: I = None
        self.txt = txt

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

e.p = d
e.t = b
d.u = c
d.w = i
n.p = h
n.t = b
n.x = c
j.u = h
j.w = c
j.t = c
j.p = c
j.y = d
f.v = i
f.y = h
f.r = h
f.t = d
f.u = b
c.u = h
c.p = h
c.y = d
c.z = d
c.o = i
c.r = n
c.v = n
c.s = e
c.t = e
m.w = f
m.t = i
m.r = j
m.s = j
m.z = b
m.p = n
m.x = c
h.s = n
h.q = e
h.x = d
h.r = d
h.o = d
h.y = f
h.t = c
h.u = c
h.v = j
h.w = m
b.t = m
b.p = m
b.r = m
b.x = j
b.w = d
b.o = d
b.q = c
b.y = f
i.t = m
i.u = m
i.s = c
i.v = b
assert h.y.r.t.y.w.v.q.s.txt == "
class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: F = None
        self.t: F = None
        self.p: F = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: G = None
        self.x: D = None
        self.r: G = None
        self.w: B = None
        self.q: F = None
        self.y: E = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: G = None
        self.s: F = None
        self.v: I = None
        self.txt = txt

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

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