class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: E = None
        self.v: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: A = None
        self.q: J = None
        self.t: C = None
        self.v: J = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: E = None
        self.p: E = None
        self.v: J = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: E = None
        self.v: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: A = None
        self.q: J = None
        self.t: C = None
        self.v: J = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: E = None
        self.p: E = None
        self.v: J = None
        self.txt = txt

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

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

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

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