class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: B = None
        self.y: F = None
        self.t: H = None
        self.z: A = None
        self.x: B = None
        self.q: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: G = None
        self.r: A = None
        self.s: A = None
        self.x: E = None
        self.t: F = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: D = None
        self.w: A = None
        self.v: E = None
        self.r: B = None
        self.y: F = None
        self.q: F = None
        self.t: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: G = None
        self.txt = txt

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

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

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

h.s = l
h.u = n
h.x = n
h.y = j
h.t = f
h.z = m
h.q = m
n.s = b
n.u = i
n.t = h
b.t = n
b.x = e
i.z = m
i.s = m
i.u = e
i.r = h
i.x = k
i.y = k
i.t = j
l.p = f
l.z = i
l.w = h
l.v = k
l.t = k
l.r = n
l.y = j
l.q = j
j.v = i
j.s = e
e.q = f
e.s = f
e.v = n
e.x = n
e.p = h
e.r = j
e.t = i
f.p = e
f.q = h
f.y = h
f.s = i
f.r = b
f.z = j
f.t = l
k.p = f
k.z = i
k.w = h
k.v = l
k.t = l
k.r = n
k.y = j
k.q = j
m.s = k
m.u = n
m.x = n
m.y = j
m.t = f
m.z = h
m.q = h
assert j.v.s.y.v.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: B = None
        self.y: F = None
        self.t: H = None
        self.z: A = None
        self.x: B = None
        self.q: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: G = None
        self.r: A = None
        self.s: A = None
        self.x: E = None
        self.t: F = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: D = None
        self.w: A = None
        self.v: E = None
        self.r: B = None
        self.y: F = None
        self.q: F = None
        self.t: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: G = None
        self.txt = txt

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

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

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

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