class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: C = None
        self.o: E = None
        self.s: D = None
        self.w: F = None
        self.u: E = None
        self.x: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: A = None
        self.q: E = None
        self.s: A = None
        self.x: C = None
        self.t: A = None
        self.z: F = None
        self.w: B = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: G = None
        self.z: F = None
        self.t: I = None
        self.w: F = None
        self.u: B = None
        self.p: B = None
        self.q: C = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: H = None
        self.z: E = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: A = None
        self.z: D = None
        self.s: F = None
        self.x: D = None
        self.t: C = None
        self.u: C = None
        self.p: A = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: B = None
        self.t: A = None
        self.u: I = None
        self.q: C = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: D = None
        self.o: F = None
        self.r: A = None
        self.txt = txt

g = A("g")
f = B("f")
d = C("d")
c = D("c")
k = E("k")
a = F("a")
b = G("b")
e = H("e")
m = I("m")
i = D("i")

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: A = None
        self.q: E = None
        self.s: A = None
        self.x: C = None
        self.t: A = None
        self.z: F = None
        self.w: B = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: G = None
        self.z: F = None
        self.t: I = None
        self.w: F = None
        self.u: B = None
        self.p: B = None
        self.q: C = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: H = None
        self.z: E = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: A = None
        self.z: D = None
        self.s: F = None
        self.x: D = None
        self.t: C = None
        self.u: C = None
        self.p: A = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: B = None
        self.t: A = None
        self.u: I = None
        self.q: C = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: D = None
        self.o: F = None
        self.r: A = None
        self.txt = txt

g = A("g")
f = B("f")
d = C("d")
c = D("c")
k = E("k")
a = F("a")
b = G("b")
e = H("e")
m = I("m")
i = D("i")

g.y = e
g.v = d
g.o = k
g.u = k
g.s = i
g.w = a
g.x = f
f.x = i
f.w = k
f.q = k
f.o = g
f.y = a
d.t = m
d.v = m
d.s = f
d.x = f
d.w = f
d.p = f
d.u = k
d.y = g
d.r = b
c.p = g
c.o = g
c.s = g
c.t = g
c.r = g
c.q = k
c.x = d
c.z = a
c.w = f
k.o = f
k.u = f
k.p = f
k.r = b
k.x = b
k.z = a
k.w = a
k.t = m
k.q = d
a.p = g
a.q = e
a.z = k
a.r = c
b.w = c
b.z = c
b.v = g
b.p = g
b.s = a
b.x = i
b.t = d
b.u = d
b.o = d
e.r = b
e.o = f
e.t = g
e.u = m
e.q = d
e.x = i
m.w = a
m.o = a
m.v = c
m.r = g
i.p = g
i.o = g
i.s = g
i.t = g
i.r = g
i.q = k
i.x = d
i.z = a
i.w = f
assert f.x.z.z.o.y.txt == "a"