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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: G = None
        self.w: G = None
        self.p: H = None
        self.u: I = None
        self.q: D = None
        self.y: I = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: F = None
        self.s: B = None
        self.w: B = None
        self.x: F = None
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: C = None
        self.z: H = None
        self.q: D = None
        self.o: H = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: E = None
        self.q: I = None
        self.v: H = None
        self.z: E = None
        self.x: D = None
        self.o: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: D = None
        self.p: H = None
        self.t: F = None
        self.o: D = None
        self.u: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: G = None
        self.w: G = None
        self.p: H = None
        self.u: I = None
        self.q: D = None
        self.y: I = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: F = None
        self.s: B = None
        self.w: B = None
        self.x: F = None
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: C = None
        self.z: H = None
        self.q: D = None
        self.o: H = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: E = None
        self.q: I = None
        self.v: H = None
        self.z: E = None
        self.x: D = None
        self.o: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: D = None
        self.p: H = None
        self.t: F = None
        self.o: D = None
        self.u: E = None
        self.txt = txt

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

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