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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: G = None
        self.o: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: G = None
        self.o: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.txt = txt

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

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