class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: E = None
        self.w: F = None
        self.y: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: C = None
        self.s: B = None
        self.w: H = None
        self.o: H = None
        self.z: E = None
        self.r: E = None
        self.q: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: C = None
        self.s: B = None
        self.w: H = None
        self.o: H = None
        self.z: E = None
        self.r: E = None
        self.q: I = None
        self.txt = txt

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

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

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

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

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

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

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