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

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

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: B = None
        self.p: G = None
        self.z: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: F = None
        self.z: J = None
        self.x: J = None
        self.w: H = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: F = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: D = None
        self.r: F = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: B = None
        self.p: G = None
        self.z: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: F = None
        self.z: J = None
        self.x: J = None
        self.w: H = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: F = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: D = None
        self.r: F = None
        self.s: E = None
        self.txt = txt

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

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

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