class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: G = None
        self.v: I = None
        self.u: I = None
        self.z: B = None
        self.o: B = None
        self.q: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: H = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: B = None
        self.x: H = None
        self.r: E = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: H = None
        self.w: H = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: D = None
        self.z: H = None
        self.t: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: H = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: B = None
        self.x: H = None
        self.r: E = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: H = None
        self.w: H = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: D = None
        self.z: H = None
        self.t: F = None
        self.txt = txt

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

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