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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: D = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: C = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: D = None
        self.o: C = None
        self.p: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: D = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: C = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: D = None
        self.o: C = None
        self.p: A = None
        self.txt = txt

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

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