class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: A = None
        self.u: H = None
        self.r: C = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: F = None
        self.p: H = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: A = None
        self.t: A = None
        self.s: A = None
        self.z: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: A = None
        self.txt = txt

h = A("h")
i = B("i")
b = C("b")
l = D("l")
m = E("m")
k = F("k")
e = G("e")
n = H("n")
d = I("d")

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: A = None
        self.u: H = None
        self.r: C = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: F = None
        self.p: H = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: A = None
        self.t: A = None
        self.s: A = None
        self.z: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: A = None
        self.txt = txt

h = A("h")
i = B("i")
b = C("b")
l = D("l")
m = E("m")
k = F("k")
e = G("e")
n = H("n")
d = I("d")

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