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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.o: F = None
        self.y: I = None
        self.s: D = None
        self.t: D = None
        self.p: J = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: G = None
        self.o: J = None
        self.w: B = None
        self.s: A = None
        self.z: C = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.o: F = None
        self.y: I = None
        self.s: D = None
        self.t: D = None
        self.p: J = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: G = None
        self.o: J = None
        self.w: B = None
        self.s: A = None
        self.z: C = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: E = None
        self.txt = txt

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

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

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