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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: A = None
        self.t: H = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: A = None
        self.t: H = None
        self.o: F = None
        self.txt = txt

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

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

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