class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: D = None
        self.v: C = None
        self.z: D = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: I = None
        self.o: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: G = None
        self.q: H = None
        self.v: F = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: H = None
        self.y: F = None
        self.u: D = None
        self.t: D = None
        self.x: B = None
        self.p: H = None
        self.v: B = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: A = None
        self.r: E = None
        self.y: C = None
        self.p: E = None
        self.z: B = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: D = None
        self.r: F = None
        self.y: I = None
        self.p: A = None
        self.q: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: I = None
        self.o: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: G = None
        self.q: H = None
        self.v: F = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: H = None
        self.y: F = None
        self.u: D = None
        self.t: D = None
        self.x: B = None
        self.p: H = None
        self.v: B = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: A = None
        self.r: E = None
        self.y: C = None
        self.p: E = None
        self.z: B = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: D = None
        self.r: F = None
        self.y: I = None
        self.p: A = None
        self.q: F = None
        self.txt = txt

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

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

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