class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: H = None
        self.s: I = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: I = None
        self.u: C = None
        self.z: F = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: H = None
        self.o: G = None
        self.txt = txt

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

c.s = k
c.o = h
g.z = d
g.p = c
l.o = d
l.x = h
l.u = h
l.s = b
d.v = a
d.q = f
d.s = c
d.r = h
d.u = h
d.p = l
f.q = c
k.x = l
k.s = l
k.p = l
k.q = g
k.v = h
k.o = d
a.u = b
h.x = f
h.s = b
h.u = l
h.z = k
h.q = k
b.z = l
b.u = h
b.o = a
assert a.u.z.o.r.z.v.u.x.txt == "
class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: H = None
        self.s: I = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: I = None
        self.u: C = None
        self.z: F = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: H = None
        self.o: G = None
        self.txt = txt

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

c.s = k
c.o = h
g.z = d
g.p = c
l.o = d
l.x = h
l.u = h
l.s = b
d.v = a
d.q = f
d.s = c
d.r = h
d.u = h
d.p = l
f.q = c
k.x = l
k.s = l
k.p = l
k.q = g
k.v = h
k.o = d
a.u = b
h.x = f
h.s = b
h.u = l
h.z = k
h.q = k
b.z = l
b.u = h
b.o = a
assert a.u.z.o.r.z.v.u.x.txt == "h"