class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: H = None
        self.q: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: B = None
        self.s: D = None
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: A = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: B = None
        self.s: D = None
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: A = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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