class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: C = None
        self.x: C = None
        self.q: C = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: D = None
        self.z: G = None
        self.o: G = None
        self.r: A = None
        self.y: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: D = None
        self.z: G = None
        self.o: G = None
        self.r: A = None
        self.y: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

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

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

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