class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: G = None
        self.y: G = None
        self.x: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: A = None
        self.w: B = None
        self.t: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: E = None
        self.r: E = None
        self.z: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: A = None
        self.w: B = None
        self.t: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: E = None
        self.r: E = None
        self.z: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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