class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: G = None
        self.z: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: B = None
        self.o: H = None
        self.s: B = None
        self.y: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: B = None
        self.r: A = None
        self.y: D = None
        self.w: J = None
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: I = None
        self.s: A = None
        self.u: C = None
        self.o: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: B = None
        self.o: H = None
        self.s: B = None
        self.y: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: B = None
        self.r: A = None
        self.y: D = None
        self.w: J = None
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: I = None
        self.s: A = None
        self.u: C = None
        self.o: C = None
        self.txt = txt

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

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

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

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