class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: I = None
        self.p: I = None
        self.x: F = None
        self.w: D = None
        self.z: H = None
        self.q: I = None
        self.t: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: C = None
        self.q: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: I = None
        self.q: G = None
        self.s: E = None
        self.v: E = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: C = None
        self.q: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: I = None
        self.q: G = None
        self.s: E = None
        self.v: E = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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