class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: A = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: A = None
        self.o: F = None
        self.u: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: C = None
        self.o: H = None
        self.u: D = None
        self.p: C = None
        self.q: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: B = None
        self.t: A = None
        self.x: A = None
        self.r: G = None
        self.z: H = None
        self.txt = txt

j = A("j")
h = B("h")
l = C("l")
e = D("e")
k = E("k")
c = F("c")
g = G("g")
a = H("a")
i = I("i")
f = G("f")

j.s = e
h.o = i
h.s = j
h.y = j
l.v = a
l.s = j
l.o = c
l.u = c
e.o = a
e.v = l
k.t = h
k.w = l
k.p = l
k.o = a
k.u = e
k.q = i
c.w = h
c.o = l
c.r = k
c.v = j
c.p = a
g.u = e
g.x = j
g.o = h
g.w = h
g.y = l
g.s = c
a.y = k
i.y = k
i.w = h
i.t = j
i.x = j
i.r = g
i.z = a
f.u = e
f.x = j
f.o = h
f.w = h
f.y = l
f.s = c
assert h.y.s.v.v.y.w.u.w.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: A = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: A = None
        self.o: F = None
        self.u: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: C = None
        self.o: H = None
        self.u: D = None
        self.p: C = None
        self.q: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: B = None
        self.t: A = None
        self.x: A = None
        self.r: G = None
        self.z: H = None
        self.txt = txt

j = A("j")
h = B("h")
l = C("l")
e = D("e")
k = E("k")
c = F("c")
g = G("g")
a = H("a")
i = I("i")
f = G("f")

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