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

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

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: G = None
        self.q: G = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: E = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: H = None
        self.s: C = None
        self.y: E = None
        self.x: D = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: C = None
        self.u: H = None
        self.txt = txt

d = A("d")
l = B("l")
f = C("f")
k = D("k")
i = E("i")
a = F("a")
e = G("e")
n = H("n")
g = A("g")
m = H("m")

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: G = None
        self.q: G = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: E = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: H = None
        self.s: C = None
        self.y: E = None
        self.x: D = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: C = None
        self.u: H = None
        self.txt = txt

d = A("d")
l = B("l")
f = C("f")
k = D("k")
i = E("i")
a = F("a")
e = G("e")
n = H("n")
g = A("g")
m = H("m")

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