class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: G = None
        self.q: I = None
        self.v: H = None
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: H = None
        self.p: G = None
        self.u: G = None
        self.w: I = None
        self.y: E = None
        self.x: A = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: F = None
        self.o: F = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: H = None
        self.p: G = None
        self.u: G = None
        self.w: I = None
        self.y: E = None
        self.x: A = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: F = None
        self.o: F = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

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