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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: D = None
        self.y: E = None
        self.t: G = None
        self.z: E = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: I = None
        self.z: E = None
        self.u: F = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: D = None
        self.r: G = None
        self.s: D = None
        self.x: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: D = None
        self.y: E = None
        self.t: G = None
        self.z: E = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: I = None
        self.z: E = None
        self.u: F = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: D = None
        self.r: G = None
        self.s: D = None
        self.x: D = None
        self.txt = txt

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

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