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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: G = None
        self.o: A = None
        self.w: H = None
        self.y: B = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: G = None
        self.s: C = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: C = None
        self.u: A = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: G = None
        self.o: A = None
        self.w: H = None
        self.y: B = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: G = None
        self.s: C = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: C = None
        self.u: A = None
        self.r: D = None
        self.txt = txt

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

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

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