class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: H = None
        self.t: H = None
        self.s: E = None
        self.z: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: G = None
        self.t: F = None
        self.q: G = None
        self.y: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: C = None
        self.y: G = None
        self.t: I = None
        self.q: C = None
        self.s: E = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.w: C = None
        self.v: I = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: I = None
        self.o: E = None
        self.p: A = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: F = None
        self.o: F = None
        self.s: A = None
        self.txt = txt

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

c.u = f
c.z = f
c.o = e
c.t = e
c.s = i
j.t = l
l.x = h
g.v = j
g.s = b
g.q = b
g.t = h
g.y = f
i.x = l
h.p = c
h.o = l
h.q = l
h.y = b
h.t = f
h.s = i
h.u = i
b.p = j
b.x = e
b.o = e
b.w = l
b.v = f
b.r = h
e.t = f
e.z = f
e.o = i
e.p = c
e.u = c
f.t = i
f.p = h
f.o = h
f.s = c
assert l.x.o.x.t.o.y.w.x.p.txt == "
class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: H = None
        self.t: H = None
        self.s: E = None
        self.z: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: G = None
        self.t: F = None
        self.q: G = None
        self.y: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: C = None
        self.y: G = None
        self.t: I = None
        self.q: C = None
        self.s: E = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.w: C = None
        self.v: I = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: I = None
        self.o: E = None
        self.p: A = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: F = None
        self.o: F = None
        self.s: A = None
        self.txt = txt

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

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