class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: F = None
        self.z: I = None
        self.u: D = None
        self.w: B = None
        self.t: I = None
        self.p: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: I = None
        self.w: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: B = None
        self.t: C = None
        self.q: E = None
        self.r: D = None
        self.w: C = None
        self.x: B = None
        self.y: D = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: I = None
        self.w: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: B = None
        self.t: C = None
        self.q: E = None
        self.r: D = None
        self.w: C = None
        self.x: B = None
        self.y: D = None
        self.txt = txt

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

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

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

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