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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: G = None
        self.t: J = None
        self.y: E = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: C = None
        self.y: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: E = None
        self.o: C = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: G = None
        self.t: J = None
        self.y: E = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: C = None
        self.y: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: E = None
        self.o: C = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: F = None
        self.txt = txt

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

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