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

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

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: F = None
        self.x: H = None
        self.u: F = None
        self.z: H = None
        self.v: I = None
        self.r: H = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: B = None
        self.t: H = None
        self.r: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: I = None
        self.r: F = None
        self.z: C = None
        self.o: F = None
        self.x: F = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: F = None
        self.x: H = None
        self.u: F = None
        self.z: H = None
        self.v: I = None
        self.r: H = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: B = None
        self.t: H = None
        self.r: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: I = None
        self.r: F = None
        self.z: C = None
        self.o: F = None
        self.x: F = None
        self.s: D = None
        self.txt = txt

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

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

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