class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: D = None
        self.s: I = None
        self.v: F = None
        self.t: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: D = None
        self.o: F = None
        self.z: I = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: A = None
        self.v: B = None
        self.t: F = None
        self.u: F = None
        self.z: F = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: F = None
        self.q: B = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: B = None
        self.w: B = None
        self.x: C = None
        self.o: I = None
        self.y: I = None
        self.r: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: B = None
        self.t: F = None
        self.x: C = None
        self.p: G = None
        self.w: D = None
        self.y: D = None
        self.u: D = None
        self.z: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: D = None
        self.o: F = None
        self.z: I = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: A = None
        self.v: B = None
        self.t: F = None
        self.u: F = None
        self.z: F = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: F = None
        self.q: B = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: B = None
        self.w: B = None
        self.x: C = None
        self.o: I = None
        self.y: I = None
        self.r: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: B = None
        self.t: F = None
        self.x: C = None
        self.p: G = None
        self.w: D = None
        self.y: D = None
        self.u: D = None
        self.z: C = None
        self.txt = txt

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

l.o = b
l.y = b
l.s = j
l.v = f
l.t = f
a.s = e
a.o = l
d.t = k
d.s = b
d.o = f
d.z = j
d.w = j
b.x = n
b.y = n
b.p = l
b.v = a
b.t = f
b.u = f
b.z = f
k.o = j
k.s = f
k.q = a
k.w = e
f.t = b
f.u = a
f.w = a
f.x = d
f.o = j
f.y = j
f.r = k
n.q = a
n.r = a
n.y = l
n.w = d
n.t = d
n.x = f
n.s = e
e.r = a
e.s = n
e.t = j
j.r = d
j.x = d
j.z = d
j.o = a
j.t = f
j.p = n
j.w = b
j.y = b
j.u = b
assert j.p.s.t.o.s.r.s.r.s.txt == "e"