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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: D = None
        self.s: E = None
        self.t: B = None
        self.o: F = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: A = None
        self.s: I = None
        self.w: C = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: I = None
        self.t: B = None
        self.s: I = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: D = None
        self.s: E = None
        self.t: B = None
        self.o: F = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: A = None
        self.s: I = None
        self.w: C = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: I = None
        self.t: B = None
        self.s: I = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: H = None
        self.txt = txt

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

c.s = l
c.w = l
c.v = l
c.x = i
i.z = e
i.o = h
i.t = b
g.u = n
g.z = n
g.s = f
g.t = i
g.o = d
g.w = h
n.x = i
f.v = h
f.w = e
d.s = i
d.v = g
e.v = l
e.y = c
e.s = h
e.w = g
e.q = d
b.r = n
b.x = h
b.s = h
b.t = i
b.u = d
h.w = b
h.o = b
l.v = e
l.y = c
l.s = h
l.w = g
l.q = d
assert f.v.o.x.w.r.x.t.t.txt == "i"