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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: C = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: B = None
        self.v: H = None
        self.x: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: C = None
        self.u: H = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: F = None
        self.t: C = None
        self.v: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: C = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: B = None
        self.v: H = None
        self.x: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: C = None
        self.u: H = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: F = None
        self.t: C = None
        self.v: G = None
        self.txt = txt

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

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