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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: D = None
        self.w: I = None
        self.y: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: H = None
        self.p: J = None
        self.t: G = None
        self.r: C = None
        self.x: F = None
        self.q: J = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: I = None
        self.z: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: D = None
        self.w: I = None
        self.y: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: H = None
        self.p: J = None
        self.t: G = None
        self.r: C = None
        self.x: F = None
        self.q: J = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: I = None
        self.z: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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