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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

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

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