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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: H = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: D = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: G = None
        self.q: F = None
        self.w: F = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: D = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: G = None
        self.q: F = None
        self.t: G = None
        self.o: G = None
        self.v: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: H = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: D = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: G = None
        self.q: F = None
        self.w: F = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: D = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: G = None
        self.q: F = None
        self.t: G = None
        self.o: G = None
        self.v: B = None
        self.txt = txt

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

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

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