class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: G = None
        self.t: G = None
        self.z: C = None
        self.y: D = None
        self.v: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: H = None
        self.s: G = None
        self.t: G = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: G = None
        self.t: I = None
        self.s: I = None
        self.z: I = None
        self.q: I = None
        self.y: E = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: H = None
        self.s: G = None
        self.t: G = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: G = None
        self.t: I = None
        self.s: I = None
        self.z: I = None
        self.q: I = None
        self.y: E = None
        self.o: G = None
        self.txt = txt

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

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

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