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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: D = None
        self.z: A = None
        self.x: F = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: H = None
        self.x: C = None
        self.p: G = None
        self.u: E = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: D = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: D = None
        self.z: A = None
        self.x: F = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: H = None
        self.x: C = None
        self.p: G = None
        self.u: E = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: D = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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