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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: E = None
        self.v: F = None
        self.x: G = None
        self.r: B = None
        self.q: F = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: A = None
        self.y: J = 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.x: I = None
        self.p: G = None
        self.o: C = None
        self.v: A = None
        self.t: H = None
        self.y: B = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: E = None
        self.q: F = None
        self.w: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: E = None
        self.v: H = None
        self.t: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: E = None
        self.v: F = None
        self.x: G = None
        self.r: B = None
        self.q: F = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: A = None
        self.y: J = 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.x: I = None
        self.p: G = None
        self.o: C = None
        self.v: A = None
        self.t: H = None
        self.y: B = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: E = None
        self.q: F = None
        self.w: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: E = None
        self.v: H = None
        self.t: G = None
        self.txt = txt

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

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