class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: C = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: I = None
        self.r: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: E = None
        self.u: H = None
        self.q: A = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: F = None
        self.q: F = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: B = None
        self.y: G = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: G = None
        self.w: F = None
        self.v: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: I = None
        self.r: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: E = None
        self.u: H = None
        self.q: A = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: F = None
        self.q: F = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: B = None
        self.y: G = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: G = None
        self.w: F = None
        self.v: B = None
        self.txt = txt

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

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