class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: B = None
        self.s: D = None
        self.o: G = None
        self.u: F = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: C = None
        self.s: A = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: C = None
        self.v: B = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

b = A("b")
j = B("j")
m = C("m")
i = D("i")
e = E("e")
h = F("h")
a = G("a")
g = C("g")
n = C("n")
c = E("c")

b.r = j
b.z = j
b.w = j
b.s = i
b.o = a
b.u = h
j.t = b
j.s = b
j.w = n
j.q = c
m.o = c
m.p = i
m.x = i
m.y = j
m.s = g
m.t = b
i.z = g
i.p = m
i.v = j
i.q = c
e.o = h
e.y = c
e.x = j
h.w = a
h.o = a
h.y = a
a.v = h
g.o = c
g.p = i
g.x = i
g.y = j
g.s = m
g.t = b
n.o = c
n.p = i
n.x = i
n.y = j
n.s = m
n.t = b
c.o = h
c.y = e
c.x = j
assert m.x.v.w.s.y.w.o.y.txt == "
class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: B = None
        self.s: D = None
        self.o: G = None
        self.u: F = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: C = None
        self.s: A = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: C = None
        self.v: B = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

b = A("b")
j = B("j")
m = C("m")
i = D("i")
e = E("e")
h = F("h")
a = G("a")
g = C("g")
n = C("n")
c = E("c")

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