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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: E = None
        self.x: H = None
        self.u: D = None
        self.w: E = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: I = None
        self.w: F = None
        self.s: F = None
        self.z: G = None
        self.o: A = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: H = None
        self.q: H = None
        self.r: D = None
        self.t: H = None
        self.v: E = None
        self.z: E = None
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: E = None
        self.u: G = None
        self.w: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: E = None
        self.x: H = None
        self.u: D = None
        self.w: E = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: I = None
        self.w: F = None
        self.s: F = None
        self.z: G = None
        self.o: A = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: H = None
        self.q: H = None
        self.r: D = None
        self.t: H = None
        self.v: E = None
        self.z: E = None
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: E = None
        self.u: G = None
        self.w: F = None
        self.txt = txt

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

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