class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: B = None
        self.t: J = None
        self.p: J = None
        self.y: F = None
        self.z: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: A = None
        self.s: D = None
        self.o: I = None
        self.z: A = None
        self.v: A = None
        self.p: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: H = None
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: A = None
        self.s: D = None
        self.o: I = None
        self.z: A = None
        self.v: A = None
        self.p: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: H = None
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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

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