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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: A = None
        self.x: H = None
        self.v: F = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: F = None
        self.o: H = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: G = None
        self.x: A = None
        self.z: C = None
        self.q: C = None
        self.t: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: C = None
        self.r: D = None
        self.v: E = None
        self.z: C = None
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: A = None
        self.x: H = None
        self.v: F = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: F = None
        self.o: H = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: G = None
        self.x: A = None
        self.z: C = None
        self.q: C = None
        self.t: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: C = None
        self.r: D = None
        self.v: E = None
        self.z: C = None
        self.x: E = None
        self.txt = txt

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

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