class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: B = None
        self.p: H = None
        self.y: I = None
        self.q: G = None
        self.o: C = None
        self.x: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: F = None
        self.y: B = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: I = None
        self.v: A = None
        self.s: H = None
        self.t: I = None
        self.q: I = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: D = None
        self.q: A = None
        self.v: H = None
        self.o: C = None
        self.r: D = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: F = None
        self.y: B = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: I = None
        self.v: A = None
        self.s: H = None
        self.t: I = None
        self.q: I = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: D = None
        self.q: A = None
        self.v: H = None
        self.o: C = None
        self.r: D = None
        self.s: C = None
        self.txt = txt

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

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

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

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