class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: E = None
        self.o: C = None
        self.q: B = None
        self.z: F = None
        self.u: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: E = None
        self.y: G = None
        self.r: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: A = None
        self.o: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.z: J = None
        self.r: A = None
        self.q: J = None
        self.y: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: F = None
        self.s: E = None
        self.p: D = None
        self.x: G = None
        self.z: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: A = None
        self.z: H = None
        self.o: F = None
        self.q: G = None
        self.t: H = None
        self.w: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: E = None
        self.y: G = None
        self.r: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: A = None
        self.o: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.z: J = None
        self.r: A = None
        self.q: J = None
        self.y: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: F = None
        self.s: E = None
        self.p: D = None
        self.x: G = None
        self.z: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: A = None
        self.z: H = None
        self.o: F = None
        self.q: G = None
        self.t: H = None
        self.w: A = None
        self.txt = txt

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

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