class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: E = None
        self.o: E = None
        self.u: D = None
        self.y: I = None
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: F = None
        self.r: C = None
        self.y: E = None
        self.w: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: B = None
        self.z: C = None
        self.v: A = None
        self.o: I = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: I = None
        self.r: A = None
        self.o: C = None
        self.z: G = None
        self.u: A = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: C = None
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: C = None
        self.y: G = None
        self.x: F = None
        self.txt = txt

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

g = A("g")
c = B("c")
n = C("n")
a = D("a")
h = E("h")
f = F("f")
k = G("k")
m = H("m")
j = I("j")
e = D("e")

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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: F = None
        self.r: C = None
        self.y: E = None
        self.w: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: B = None
        self.z: C = None
        self.v: A = None
        self.o: I = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: I = None
        self.r: A = None
        self.o: C = None
        self.z: G = None
        self.u: A = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: C = None
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: C = None
        self.y: G = None
        self.x: F = None
        self.txt = txt

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

g = A("g")
c = B("c")
n = C("n")
a = D("a")
h = E("h")
f = F("f")
k = G("k")
m = H("m")
j = I("j")
e = D("e")

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