class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: F = None
        self.v: G = None
        self.t: B = None
        self.p: I = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: C = None
        self.x: E = None
        self.s: A = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: H = None
        self.t: D = None
        self.z: F = None
        self.q: G = None
        self.p: B = None
        self.x: H = None
        self.u: I = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.q: H = None
        self.x: B = None
        self.y: C = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: I = None
        self.v: G = None
        self.u: C = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: F = None
        self.u: D = None
        self.y: C = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: E = None
        self.t: B = None
        self.s: I = None
        self.q: C = None
        self.x: C = None
        self.o: B = None
        self.p: E = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: C = None
        self.x: E = None
        self.s: A = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: H = None
        self.t: D = None
        self.z: F = None
        self.q: G = None
        self.p: B = None
        self.x: H = None
        self.u: I = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.q: H = None
        self.x: B = None
        self.y: C = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: I = None
        self.v: G = None
        self.u: C = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: F = None
        self.u: D = None
        self.y: C = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: E = None
        self.t: B = None
        self.s: I = None
        self.q: C = None
        self.x: C = None
        self.o: B = None
        self.p: E = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: B = None
        self.txt = txt

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

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