class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: H = None
        self.y: C = None
        self.x: E = None
        self.r: B = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: F = None
        self.y: F = None
        self.x: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: E = None
        self.r: B = None
        self.o: H = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: H = None
        self.p: H = None
        self.txt = txt

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

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

i.s = n
i.v = k
i.y = a
i.x = l
i.r = c
i.t = f
c.z = i
c.r = d
c.y = d
c.x = f
a.o = n
a.s = n
a.t = c
a.y = c
a.u = i
f.u = c
f.r = c
f.s = c
f.v = e
f.o = k
f.q = l
l.v = c
d.z = l
n.v = k
n.y = k
n.p = k
k.y = n
k.q = n
k.z = f
k.x = i
e.v = c
b.z = e
assert d.z.v.x.q.v.z.r.txt == "
class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: H = None
        self.y: C = None
        self.x: E = None
        self.r: B = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: F = None
        self.y: F = None
        self.x: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: E = None
        self.r: B = None
        self.o: H = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: H = None
        self.p: H = None
        self.txt = txt

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

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

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