class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: C = None
        self.v: H = None
        self.y: G = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: H = None
        self.o: D = None
        self.p: C = None
        self.v: C = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: B = None
        self.y: B = None
        self.v: C = None
        self.z: H = None
        self.p: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: H = None
        self.o: D = None
        self.p: C = None
        self.v: C = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: B = None
        self.y: B = None
        self.v: C = None
        self.z: H = None
        self.p: B = None
        self.txt = txt

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

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