class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: C = None
        self.q: F = None
        self.r: B = None
        self.p: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: D = None
        self.q: F = None
        self.p: I = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: H = None
        self.t: D = None
        self.x: D = None
        self.v: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: D = None
        self.q: F = None
        self.p: I = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: H = None
        self.t: D = None
        self.x: D = None
        self.v: E = None
        self.txt = txt

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

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