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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: A = None
        self.txt = txt

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

a = A("a")
j = B("j")
i = C("i")
m = D("m")
l = E("l")
n = F("n")
f = G("f")
b = B("b")
e = D("e")

a.z = e
j.u = a
j.o = a
j.v = a
j.x = f
j.w = f
j.p = i
j.s = n
i.z = a
i.v = a
i.r = n
i.o = b
i.w = m
i.t = l
i.s = j
m.s = e
m.w = a
m.q = a
m.y = b
m.x = l
m.z = l
l.u = n
n.v = b
n.p = a
f.x = m
f.o = j
f.r = l
f.w = e
f.s = e
b.u = a
b.o = a
b.v = a
b.x = f
b.w = f
b.p = i
b.s = n
e.s = m
e.w = a
e.q = a
e.y = b
e.x = l
e.z = l
assert j.o.z.y.u.z.txt == "
class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: A = None
        self.txt = txt

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

a = A("a")
j = B("j")
i = C("i")
m = D("m")
l = E("l")
n = F("n")
f = G("f")
b = B("b")
e = D("e")

a.z = e
j.u = a
j.o = a
j.v = a
j.x = f
j.w = f
j.p = i
j.s = n
i.z = a
i.v = a
i.r = n
i.o = b
i.w = m
i.t = l
i.s = j
m.s = e
m.w = a
m.q = a
m.y = b
m.x = l
m.z = l
l.u = n
n.v = b
n.p = a
f.x = m
f.o = j
f.r = l
f.w = e
f.s = e
b.u = a
b.o = a
b.v = a
b.x = f
b.w = f
b.p = i
b.s = n
e.s = m
e.w = a
e.q = a
e.y = b
e.x = l
e.z = l
assert j.o.z.y.u.z.txt == "e"