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

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

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

class D:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: E = None
        self.y: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: E = None
        self.y: D = None
        self.txt = txt

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

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