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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: C = None
        self.p: E = None
        self.t: G = None
        self.s: F = None
        self.r: H = None
        self.v: D = None
        self.x: G = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: E = None
        self.z: G = None
        self.v: I = None
        self.s: D = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: F = None
        self.o: F = None
        self.z: A = None
        self.x: B = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: D = None
        self.x: F = None
        self.t: A = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: E = None
        self.u: B = None
        self.p: D = None
        self.z: H = None
        self.s: E = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: F = None
        self.p: B = None
        self.y: D = None
        self.s: D = None
        self.r: H = None
        self.q: D = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: I = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

g = A("g")
c = B("c")
j = C("j")
f = D("f")
m = E("m")
h = F("h")
a = G("a")
n = H("n")
e = I("e")

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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: C = None
        self.p: E = None
        self.t: G = None
        self.s: F = None
        self.r: H = None
        self.v: D = None
        self.x: G = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: E = None
        self.z: G = None
        self.v: I = None
        self.s: D = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: F = None
        self.o: F = None
        self.z: A = None
        self.x: B = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: D = None
        self.x: F = None
        self.t: A = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: E = None
        self.u: B = None
        self.p: D = None
        self.z: H = None
        self.s: E = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: F = None
        self.p: B = None
        self.y: D = None
        self.s: D = None
        self.r: H = None
        self.q: D = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: I = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

g = A("g")
c = B("c")
j = C("j")
f = D("f")
m = E("m")
h = F("h")
a = G("a")
n = H("n")
e = I("e")

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