class A:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: E = None
        self.u: F = None
        self.v: G = None
        self.s: G = None
        self.r: C = None
        self.q: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: A = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: A = None
        self.o: E = None
        self.w: A = None
        self.q: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: A = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: A = None
        self.o: E = None
        self.w: A = None
        self.q: B = None
        self.txt = txt

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

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

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