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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: B = None
        self.u: E = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.w: A = None
        self.z: B = None
        self.y: H = None
        self.o: H = None
        self.q: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: D = None
        self.o: C = None
        self.x: A = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

f = A("f")
h = B("h")
b = C("b")
k = D("k")
a = E("a")
i = F("i")
c = G("c")
e = H("e")

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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: B = None
        self.u: E = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.w: A = None
        self.z: B = None
        self.y: H = None
        self.o: H = None
        self.q: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: D = None
        self.o: C = None
        self.x: A = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

f = A("f")
h = B("h")
b = C("b")
k = D("k")
a = E("a")
i = F("i")
c = G("c")
e = H("e")

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