class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: J = None
        self.q: C = None
        self.y: C = None
        self.w: D = None
        self.o: F = None
        self.p: B = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: A = None
        self.z: F = None
        self.q: H = None
        self.u: A = None
        self.y: H = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: H = None
        self.p: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: J = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: A = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: A = None
        self.z: F = None
        self.q: H = None
        self.u: A = None
        self.y: H = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: H = None
        self.p: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: J = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: A = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

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

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