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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: J = None
        self.z: G = None
        self.p: I = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: G = None
        self.w: A = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: G = None
        self.t: B = None
        self.r: E = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: A = None
        self.z: F = None
        self.q: F = None
        self.u: C = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: F = None
        self.r: I = None
        self.u: I = None
        self.s: A = None
        self.t: J = None
        self.v: C = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: J = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: D = None
        self.y: D = None
        self.z: H = None
        self.w: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: J = None
        self.z: G = None
        self.p: I = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: G = None
        self.w: A = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: G = None
        self.t: B = None
        self.r: E = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: A = None
        self.z: F = None
        self.q: F = None
        self.u: C = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: F = None
        self.r: I = None
        self.u: I = None
        self.s: A = None
        self.t: J = None
        self.v: C = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: J = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: D = None
        self.y: D = None
        self.z: H = None
        self.w: B = None
        self.txt = txt

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

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