class A:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: E = None
        self.t: E = None
        self.o: I = None
        self.s: F = None
        self.z: C = None
        self.x: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: C = None
        self.w: I = None
        self.q: C = None
        self.u: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: C = None
        self.x: H = None
        self.t: F = None
        self.s: G = None
        self.o: G = None
        self.y: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: G = None
        self.o: B = None
        self.x: G = None
        self.v: I = None
        self.txt = txt

j = A("j")
i = B("i")
g = C("g")
e = D("e")
n = E("n")
d = F("d")
c = G("c")
k = H("k")
m = I("m")
h = I("h")

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: C = None
        self.w: I = None
        self.q: C = None
        self.u: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: C = None
        self.x: H = None
        self.t: F = None
        self.s: G = None
        self.o: G = None
        self.y: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: G = None
        self.o: B = None
        self.x: G = None
        self.v: I = None
        self.txt = txt

j = A("j")
i = B("i")
g = C("g")
e = D("e")
n = E("n")
d = F("d")
c = G("c")
k = H("k")
m = I("m")
h = I("h")

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