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

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: H = None
        self.w: H = None
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.o: F = None
        self.q: F = None
        self.v: A = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: A = None
        self.x: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: C = None
        self.o: A = None
        self.z: H = None
        self.x: F = None
        self.u: A = None
        self.t: A = None
        self.q: E = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: H = None
        self.w: H = None
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.o: F = None
        self.q: F = None
        self.v: A = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: A = None
        self.x: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: C = None
        self.o: A = None
        self.z: H = None
        self.x: F = None
        self.u: A = None
        self.t: A = None
        self.q: E = None
        self.y: B = None
        self.txt = txt

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

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