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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: E = None
        self.t: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: G = None
        self.x: J = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: C = None
        self.t: I = None
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: D = None
        self.w: E = None
        self.p: F = None
        self.o: G = None
        self.v: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: E = None
        self.t: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: G = None
        self.x: J = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: C = None
        self.t: I = None
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: D = None
        self.w: E = None
        self.p: F = None
        self.o: G = None
        self.v: E = None
        self.txt = txt

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

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

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

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