class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: D = None
        self.u: A = None
        self.p: A = None
        self.r: E = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: D = None
        self.u: A = None
        self.p: A = None
        self.r: E = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: E = None
        self.txt = txt

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

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