class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: E = None
        self.w: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: A = None
        self.v: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: G = None
        self.t: G = None
        self.y: D = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: D = None
        self.w: F = None
        self.t: E = None
        self.r: A = None
        self.y: D = None
        self.txt = txt

j = A("j")
b = B("b")
m = C("m")
i = D("i")
k = E("k")
h = F("h")
n = G("n")
a = B("a")

j.o = k
j.v = k
j.w = m
b.q = i
b.p = j
b.v = h
m.s = a
m.v = j
m.t = n
m.r = k
m.q = i
i.t = n
i.s = m
i.z = j
i.o = h
i.p = k
i.u = k
i.q = a
k.w = n
k.q = j
k.v = j
k.o = h
k.s = h
k.y = i
k.z = b
h.v = j
h.w = n
h.t = n
h.y = i
h.r = m
n.u = m
n.o = i
n.y = i
n.w = h
n.t = k
n.r = j
a.q = i
a.p = j
a.v = h
assert i.z.w.v.w.q.z.w.txt == "
class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: E = None
        self.w: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: A = None
        self.v: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: G = None
        self.t: G = None
        self.y: D = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: D = None
        self.w: F = None
        self.t: E = None
        self.r: A = None
        self.y: D = None
        self.txt = txt

j = A("j")
b = B("b")
m = C("m")
i = D("i")
k = E("k")
h = F("h")
n = G("n")
a = B("a")

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