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

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: B = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: D = None
        self.z: A = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: A = None
        self.r: B = None
        self.u: A = None
        self.s: I = None
        self.y: F = None
        self.w: H = None
        self.z: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: B = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: D = None
        self.z: A = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: A = None
        self.r: B = None
        self.u: A = None
        self.s: I = None
        self.y: F = None
        self.w: H = None
        self.z: F = None
        self.txt = txt

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

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