class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: B = None
        self.u: D = None
        self.p: F = None
        self.w: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: G = None
        self.q: I = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: H = None
        self.q: F = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: G = None
        self.q: I = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: H = None
        self.q: F = None
        self.o: B = None
        self.txt = txt

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

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