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

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

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: B = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: H = None
        self.u: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.q: F = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: B = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: H = None
        self.u: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.q: F = None
        self.x: E = None
        self.txt = txt

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

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