class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: H = None
        self.t: C = None
        self.w: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: H = None
        self.z: F = None
        self.v: F = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: D = None
        self.o: G = None
        self.txt = txt

i = A("i")
j = B("j")
b = C("b")
n = D("n")
c = E("c")
a = F("a")
l = G("l")
h = H("h")
d = F("d")
m = G("m")

i.t = a
j.v = c
j.r = n
j.s = b
j.z = i
j.x = i
b.s = l
b.w = i
b.p = j
n.w = c
n.t = h
c.o = j
a.z = j
a.y = h
a.t = b
a.w = d
l.y = j
l.s = h
l.z = a
l.v = a
l.p = i
h.r = j
h.x = n
h.o = l
d.z = j
d.y = h
d.t = b
d.w = a
m.y = j
m.s = h
m.z = d
m.v = d
m.p = i
assert n.t.x.w.o.v.o.v.txt == "
class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: H = None
        self.t: C = None
        self.w: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: H = None
        self.z: F = None
        self.v: F = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: D = None
        self.o: G = None
        self.txt = txt

i = A("i")
j = B("j")
b = C("b")
n = D("n")
c = E("c")
a = F("a")
l = G("l")
h = H("h")
d = F("d")
m = G("m")

i.t = a
j.v = c
j.r = n
j.s = b
j.z = i
j.x = i
b.s = l
b.w = i
b.p = j
n.w = c
n.t = h
c.o = j
a.z = j
a.y = h
a.t = b
a.w = d
l.y = j
l.s = h
l.z = a
l.v = a
l.p = i
h.r = j
h.x = n
h.o = l
d.z = j
d.y = h
d.t = b
d.w = a
m.y = j
m.s = h
m.z = d
m.v = d
m.p = i
assert n.t.x.w.o.v.o.v.txt == "c"