class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: B = None
        self.r: H = None
        self.q: G = None
        self.o: E = None
        self.y: H = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: H = None
        self.o: C = None
        self.x: G = None
        self.v: A = None
        self.z: G = None
        self.y: B = None
        self.u: A = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: I = None
        self.u: F = None
        self.v: G = None
        self.o: A = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: E = None
        self.v: E = None
        self.t: B = None
        self.y: B = None
        self.q: H = None
        self.r: A = None
        self.s: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: H = None
        self.o: C = None
        self.x: G = None
        self.v: A = None
        self.z: G = None
        self.y: B = None
        self.u: A = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: I = None
        self.u: F = None
        self.v: G = None
        self.o: A = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: E = None
        self.v: E = None
        self.t: B = None
        self.y: B = None
        self.q: H = None
        self.r: A = None
        self.s: D = None
        self.txt = txt

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

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