class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: D = None
        self.t: B = None
        self.w: C = None
        self.y: C = None
        self.u: G = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.z: E = None
        self.s: E = None
        self.t: D = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: A = None
        self.v: D = None
        self.txt = txt

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

i = A("i")
c = B("c")
a = C("a")
f = D("f")
g = E("g")
m = F("m")
l = G("l")
d = H("d")
e = H("e")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.z: E = None
        self.s: E = None
        self.t: D = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: A = None
        self.v: D = None
        self.txt = txt

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

i = A("i")
c = B("c")
a = C("a")
f = D("f")
g = E("g")
m = F("m")
l = G("l")
d = H("d")
e = H("e")

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