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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: D = None
        self.x: G = None
        self.w: G = None
        self.t: B = None
        self.s: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.y: E = None
        self.q: H = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: D = None
        self.x: G = None
        self.w: G = None
        self.t: B = None
        self.s: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.y: E = None
        self.q: H = None
        self.o: B = None
        self.txt = txt

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

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