class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: E = None
        self.u: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: F = None
        self.u: A = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: G = None
        self.q: F = None
        self.o: B = None
        self.p: F = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: D = None
        self.s: E = None
        self.q: B = None
        self.r: C = None
        self.x: E = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: F = None
        self.u: A = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: G = None
        self.q: F = None
        self.o: B = None
        self.p: F = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: D = None
        self.s: E = None
        self.q: B = None
        self.r: C = None
        self.x: E = None
        self.u: E = None
        self.txt = txt

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

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

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

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