class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: B = None
        self.q: E = None
        self.y: D = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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