class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: H = None
        self.s: E = None
        self.t: E = None
        self.w: E = None
        self.p: E = None
        self.o: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: G = None
        self.y: E = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: B = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: G = None
        self.y: E = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: B = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

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