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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: E = None
        self.p: E = None
        self.u: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: I = None
        self.s: J = None
        self.v: C = None
        self.w: A = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: D = None
        self.r: H = None
        self.p: D = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: F = None
        self.p: D = None
        self.o: A = None
        self.z: I = None
        self.t: F = None
        self.u: B = None
        self.w: D = None
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: C = None
        self.y: B = None
        self.s: A = None
        self.v: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: E = None
        self.p: E = None
        self.u: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: I = None
        self.s: J = None
        self.v: C = None
        self.w: A = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: D = None
        self.r: H = None
        self.p: D = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: F = None
        self.p: D = None
        self.o: A = None
        self.z: I = None
        self.t: F = None
        self.u: B = None
        self.w: D = None
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: C = None
        self.y: B = None
        self.s: A = None
        self.v: A = None
        self.txt = txt

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

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

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