class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: F = None
        self.y: A = None
        self.t: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: G = None
        self.s: F = None
        self.p: A = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: C = None
        self.o: A = None
        self.x: H = None
        self.r: D = None
        self.u: E = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: G = None
        self.s: F = None
        self.p: A = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: C = None
        self.o: A = None
        self.x: H = None
        self.r: D = None
        self.u: E = None
        self.t: F = None
        self.txt = txt

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

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

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