class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: B = None
        self.x: G = None
        self.w: D = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: B = None
        self.o: G = None
        self.v: D = None
        self.z: A = None
        self.w: E = None
        self.q: D = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: A = None
        self.s: H = None
        self.o: H = None
        self.r: F = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: A = None
        self.p: D = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.p: D = None
        self.txt = txt

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

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

e = A("e")
m = B("m")
i = C("i")
c = D("c")
g = E("g")
k = F("k")
j = G("j")
f = H("f")
b = B("b")
d = D("d")

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: B = None
        self.o: G = None
        self.v: D = None
        self.z: A = None
        self.w: E = None
        self.q: D = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: A = None
        self.s: H = None
        self.o: H = None
        self.r: F = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: A = None
        self.p: D = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.p: D = None
        self.txt = txt

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

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

e = A("e")
m = B("m")
i = C("i")
c = D("c")
g = E("g")
k = F("k")
j = G("j")
f = H("f")
b = B("b")
d = D("d")

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