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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: A = None
        self.q: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: A = None
        self.q: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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