class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: B = None
        self.p: B = None
        self.r: C = None
        self.z: F = None
        self.w: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: H = None
        self.u: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: A = None
        self.t: B = None
        self.w: E = None
        self.q: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: H = None
        self.u: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: A = None
        self.t: B = None
        self.w: E = None
        self.q: D = None
        self.y: H = None
        self.txt = txt

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

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

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