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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: B = None
        self.w: G = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: E = None
        self.s: A = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: F = None
        self.o: F = None
        self.t: B = None
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: B = None
        self.w: G = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: E = None
        self.s: A = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: F = None
        self.o: F = None
        self.t: B = None
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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