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

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: G = None
        self.v: G = None
        self.z: B = None
        self.w: G = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: H = None
        self.r: I = None
        self.u: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: B = None
        self.s: J = None
        self.t: A = None
        self.z: H = None
        self.u: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: G = None
        self.v: G = None
        self.z: B = None
        self.w: G = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: H = None
        self.r: I = None
        self.u: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: B = None
        self.s: J = None
        self.t: A = None
        self.z: H = None
        self.u: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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