class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: B = None
        self.v: D = None
        self.y: H = None
        self.t: F = None
        self.z: B = None
        self.o: D = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: E = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: F = None
        self.u: B = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: D = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: E = None
        self.x: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: E = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: F = None
        self.u: B = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: D = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: E = None
        self.x: F = None
        self.txt = txt

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

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