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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: F = None
        self.o: J = None
        self.x: H = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: C = None
        self.w: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: H = None
        self.w: A = None
        self.y: B = None
        self.z: G = None
        self.r: H = None
        self.p: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: F = None
        self.o: J = None
        self.x: H = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: C = None
        self.w: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: H = None
        self.w: A = None
        self.y: B = None
        self.z: G = None
        self.r: H = None
        self.p: J = None
        self.txt = txt

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

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

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