class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: D = None
        self.t: F = None
        self.x: B = None
        self.u: F = None
        self.y: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: A = None
        self.x: A = None
        self.r: E = None
        self.p: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: E = None
        self.y: B = None
        self.t: B = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: A = None
        self.x: A = None
        self.r: E = None
        self.p: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: E = None
        self.y: B = None
        self.t: B = None
        self.w: C = None
        self.txt = txt

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

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

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