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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: E = None
        self.o: I = None
        self.r: F = None
        self.v: F = None
        self.w: A = None
        self.z: I = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: H = None
        self.t: G = None
        self.w: I = None
        self.y: F = None
        self.q: H = None
        self.o: F = None
        self.u: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: G = None
        self.p: I = None
        self.q: A = None
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: B = None
        self.z: G = None
        self.s: H = None
        self.y: F = None
        self.w: D = None
        self.q: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: E = None
        self.o: I = None
        self.r: F = None
        self.v: F = None
        self.w: A = None
        self.z: I = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: H = None
        self.t: G = None
        self.w: I = None
        self.y: F = None
        self.q: H = None
        self.o: F = None
        self.u: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: G = None
        self.p: I = None
        self.q: A = None
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: B = None
        self.z: G = None
        self.s: H = None
        self.y: F = None
        self.w: D = None
        self.q: G = None
        self.txt = txt

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

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