class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: D = None
        self.o: F = None
        self.r: D = None
        self.u: C = None
        self.v: F = None
        self.z: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: A = None
        self.r: F = None
        self.w: A = None
        self.u: F = None
        self.t: A = None
        self.v: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: E = None
        self.z: D = None
        self.v: B = None
        self.q: A = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: A = None
        self.r: F = None
        self.w: A = None
        self.u: F = None
        self.t: A = None
        self.v: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: E = None
        self.z: D = None
        self.v: B = None
        self.q: A = None
        self.o: F = None
        self.txt = txt

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

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

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

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