class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: C = None
        self.u: F = None
        self.v: B = None
        self.p: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: A = None
        self.v: A = None
        self.p: H = None
        self.w: H = None
        self.t: A = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.t: B = None
        self.z: A = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: A = None
        self.v: A = None
        self.p: H = None
        self.w: H = None
        self.t: A = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.t: B = None
        self.z: A = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: I = None
        self.txt = txt

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

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

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

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