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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: B = None
        self.r: H = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: I = None
        self.r: F = None
        self.u: J = None
        self.x: F = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: E = None
        self.q: E = None
        self.z: I = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: B = None
        self.r: H = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: I = None
        self.r: F = None
        self.u: J = None
        self.x: F = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: E = None
        self.q: E = None
        self.z: I = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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