class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: E = None
        self.q: B = None
        self.w: H = None
        self.s: H = None
        self.x: H = None
        self.v: I = None
        self.o: B = None
        self.t: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: B = None
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: A = None
        self.u: B = None
        self.s: F = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: I = None
        self.z: F = None
        self.s: G = None
        self.t: B = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: B = None
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: A = None
        self.u: B = None
        self.s: F = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: I = None
        self.z: F = None
        self.s: G = None
        self.t: B = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

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