class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: C = None
        self.r: C = None
        self.z: B = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: I = None
        self.y: A = None
        self.w: F = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: A = None
        self.z: B = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: B = None
        self.t: C = None
        self.y: C = None
        self.x: B = None
        self.o: C = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: C = None
        self.v: E = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: I = None
        self.y: A = None
        self.w: F = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: A = None
        self.z: B = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: B = None
        self.t: C = None
        self.y: C = None
        self.x: B = None
        self.o: C = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: C = None
        self.v: E = None
        self.u: F = None
        self.txt = txt

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

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

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

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