class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: G = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: F = None
        self.q: A = None
        self.y: H = None
        self.r: G = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: G = None
        self.u: H = None
        self.p: A = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: H = None
        self.r: B = None
        self.v: E = None
        self.q: F = None
        self.u: H = None
        self.z: F = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: H = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: F = None
        self.p: A = None
        self.u: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: F = None
        self.q: A = None
        self.y: H = None
        self.r: G = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: G = None
        self.u: H = None
        self.p: A = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: H = None
        self.r: B = None
        self.v: E = None
        self.q: F = None
        self.u: H = None
        self.z: F = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: H = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: F = None
        self.p: A = None
        self.u: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: B = None
        self.txt = txt

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

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