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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: D = None
        self.q: G = None
        self.r: D = None
        self.v: A = None
        self.z: A = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: B = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: G = None
        self.q: B = None
        self.txt = txt

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

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

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

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

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

k.t = i
k.o = i
k.x = g
k.r = e
k.z = e
k.y = h
k.w = b
n.o = b
n.w = i
n.r = i
n.q = h
n.v = k
n.z = k
n.u = k
m.x = g
m.o = n
m.t = e
i.x = h
g.r = e
g.z = h
g.q = n
b.s = g
h.s = e
h.r = d
h.y = d
h.t = i
e.s = d
e.t = i
d.o = k
d.t = i
d.z = i
d.u = i
d.w = n
d.s = g
d.q = h
d.y = m
d.x = b
j.x = g
j.o = n
j.t = e
assert j.t.t.x.s.s.u.x.t.x.s.txt == "
class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: E = None
        self.r: H = None
        self.y: G = None
        self.w: F = None
        self.o: D = None
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: D = None
        self.q: G = None
        self.r: D = None
        self.v: A = None
        self.z: A = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: B = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: G = None
        self.q: B = None
        self.txt = txt

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

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

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

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

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

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