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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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