class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: J = None
        self.r: J = None
        self.w: F = None
        self.q: D = None
        self.u: C = None
        self.t: J = None
        self.v: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: E = None
        self.z: H = None
        self.u: J = None
        self.y: J = None
        self.s: H = None
        self.t: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: A = None
        self.v: A = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: B = None
        self.x: A = None
        self.t: G = None
        self.txt = txt

l = A("l")
m = B("m")
j = C("j")
e = D("e")
k = E("k")
c = F("c")
b = G("b")
g = H("g")
f = I("f")
i = J("i")

l.p = e
l.q = e
l.x = i
l.r = i
l.t = i
l.w = c
l.u = j
l.v = b
m.v = j
m.y = j
m.q = i
m.r = i
m.s = l
m.t = l
m.w = b
m.p = e
m.z = g
j.u = g
j.v = g
j.o = k
j.s = k
j.r = k
j.p = l
e.w = l
e.q = k
e.z = g
e.s = g
e.u = i
e.y = i
e.t = j
k.o = g
k.r = j
k.t = c
k.p = c
k.z = l
k.u = m
k.q = b
k.v = i
c.s = m
c.t = m
c.p = j
c.u = i
c.r = b
c.w = b
c.x = e
c.o = e
b.x = m
g.v = l
g.q = l
g.s = l
g.r = b
g.u = b
g.o = j
g.t = m
g.y = m
g.w = c
g.p = c
f.y = e
f.s = l
f.v = l
f.w = c
i.v = j
i.o = m
i.x = l
i.t = b
assert k.q.x.w.x.s.q.y.o.txt == "
class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: J = None
        self.r: J = None
        self.w: F = None
        self.q: D = None
        self.u: C = None
        self.t: J = None
        self.v: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: E = None
        self.z: H = None
        self.u: J = None
        self.y: J = None
        self.s: H = None
        self.t: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: A = None
        self.v: A = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: B = None
        self.x: A = None
        self.t: G = None
        self.txt = txt

l = A("l")
m = B("m")
j = C("j")
e = D("e")
k = E("k")
c = F("c")
b = G("b")
g = H("g")
f = I("f")
i = J("i")

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