class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: D = None
        self.p: J = None
        self.w: E = None
        self.u: H = None
        self.o: H = None
        self.t: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: G = None
        self.u: G = None
        self.o: B = None
        self.q: B = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: H = None
        self.q: A = None
        self.r: A = None
        self.o: C = None
        self.s: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: J = None
        self.u: C = None
        self.x: J = None
        self.p: A = None
        self.q: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: F = None
        self.y: B = None
        self.v: B = None
        self.w: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: D = None
        self.p: J = None
        self.w: E = None
        self.u: H = None
        self.o: H = None
        self.t: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: G = None
        self.u: G = None
        self.o: B = None
        self.q: B = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: H = None
        self.q: A = None
        self.r: A = None
        self.o: C = None
        self.s: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: J = None
        self.u: C = None
        self.x: J = None
        self.p: A = None
        self.q: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: F = None
        self.y: B = None
        self.v: B = None
        self.w: B = None
        self.txt = txt

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

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