class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: G = None
        self.y: H = None
        self.r: E = None
        self.q: D = None
        self.p: F = None
        self.s: B = None
        self.t: D = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: H = None
        self.s: C = None
        self.y: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: B = None
        self.y: H = None
        self.s: C = None
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: H = None
        self.s: C = None
        self.y: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: B = None
        self.y: H = None
        self.s: C = None
        self.o: B = None
        self.txt = txt

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

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