class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.v: E = None
        self.t: F = None
        self.w: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: D = None
        self.w: B = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: E = None
        self.y: B = None
        self.s: C = None
        self.w: E = None
        self.txt = txt

g = A("g")
n = B("n")
e = C("e")
d = D("d")
l = E("l")
j = F("j")
c = G("c")
b = C("b")
k = G("k")
m = A("m")

g.s = e
g.x = d
g.w = d
g.v = l
g.t = j
n.p = l
n.u = c
n.y = c
n.r = d
n.z = m
e.s = n
e.w = n
e.z = d
e.y = m
d.y = b
d.p = k
d.v = e
d.t = j
d.r = n
d.u = c
d.o = m
l.r = n
l.x = k
j.y = l
j.p = e
c.q = k
c.p = l
c.w = l
c.y = n
c.s = e
b.s = n
b.w = n
b.z = d
b.y = m
k.q = c
k.p = l
k.w = l
k.y = n
k.s = b
m.s = b
m.x = d
m.w = d
m.v = l
m.t = j
assert d.v.z.v.y.t.p.w.z.w.v.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.v: E = None
        self.t: F = None
        self.w: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: D = None
        self.w: B = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: E = None
        self.y: B = None
        self.s: C = None
        self.w: E = None
        self.txt = txt

g = A("g")
n = B("n")
e = C("e")
d = D("d")
l = E("l")
j = F("j")
c = G("c")
b = C("b")
k = G("k")
m = A("m")

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