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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: D = None
        self.t: C = None
        self.z: I = None
        self.r: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: A = None
        self.o: I = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: D = None
        self.t: C = None
        self.z: I = None
        self.r: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: A = None
        self.o: I = None
        self.txt = txt

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

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

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

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