class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: C = None
        self.r: G = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: A = None
        self.o: E = None
        self.y: B = None
        self.w: F = None
        self.r: A = None
        self.x: H = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: D = None
        self.v: H = None
        self.p: F = None
        self.z: D = None
        self.w: A = None
        self.y: E = None
        self.txt = txt

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

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

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

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

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

e = A("e")
d = B("d")
n = C("n")
f = D("f")
c = E("c")
h = F("h")
g = G("g")
l = H("l")
a = F("a")
j = B("j")

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: A = None
        self.o: E = None
        self.y: B = None
        self.w: F = None
        self.r: A = None
        self.x: H = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: D = None
        self.v: H = None
        self.p: F = None
        self.z: D = None
        self.w: A = None
        self.y: E = None
        self.txt = txt

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

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

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

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

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

e = A("e")
d = B("d")
n = C("n")
f = D("f")
c = E("c")
h = F("h")
g = G("g")
l = H("l")
a = F("a")
j = B("j")

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