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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: B = None
        self.r: F = None
        self.q: H = None
        self.x: B = None
        self.p: E = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: H = None
        self.t: G = None
        self.r: G = None
        self.s: F = None
        self.q: A = None
        self.v: H = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: B = None
        self.r: F = None
        self.q: H = None
        self.x: B = None
        self.p: E = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: H = None
        self.t: G = None
        self.r: G = None
        self.s: F = None
        self.q: A = None
        self.v: H = None
        self.txt = txt

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

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

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

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

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