class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: B = None
        self.s: I = None
        self.r: I = None
        self.v: E = None
        self.p: H = None
        self.w: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: G = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: E = None
        self.z: I = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: H = None
        self.t: C = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: D = None
        self.t: H = None
        self.q: C = None
        self.w: B = None
        self.o: E = None
        self.r: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: H = None
        self.r: D = None
        self.z: E = None
        self.v: C = None
        self.w: B = None
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: G = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: E = None
        self.z: I = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: H = None
        self.t: C = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: D = None
        self.t: H = None
        self.q: C = None
        self.w: B = None
        self.o: E = None
        self.r: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: H = None
        self.r: D = None
        self.z: E = None
        self.v: C = None
        self.w: B = None
        self.u: C = None
        self.txt = txt

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

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