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

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

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: C = None
        self.x: E = None
        self.o: E = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: C = None
        self.x: E = None
        self.o: E = None
        self.p: F = None
        self.txt = txt

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

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

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