class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: E = None
        self.w: D = None
        self.p: C = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: D = None
        self.x: G = None
        self.w: E = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: C = None
        self.x: E = None
        self.y: C = None
        self.t: C = None
        self.s: F = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: B = None
        self.u: C = None
        self.v: D = None
        self.w: G = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: B = None
        self.r: A = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: B = None
        self.t: C = None
        self.u: C = None
        self.r: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: D = None
        self.x: G = None
        self.w: E = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: C = None
        self.x: E = None
        self.y: C = None
        self.t: C = None
        self.s: F = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: B = None
        self.u: C = None
        self.v: D = None
        self.w: G = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: B = None
        self.r: A = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: B = None
        self.t: C = None
        self.u: C = None
        self.r: C = None
        self.txt = txt

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

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