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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: A = None
        self.x: F = None
        self.o: G = None
        self.t: H = None
        self.y: H = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.v: B = None
        self.y: H = None
        self.w: E = None
        self.u: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: A = None
        self.x: F = None
        self.o: G = None
        self.t: H = None
        self.y: H = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.v: B = None
        self.y: H = None
        self.w: E = None
        self.u: E = None
        self.txt = txt

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

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

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