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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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