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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: A = None
        self.w: E = None
        self.x: D = None
        self.t: G = None
        self.s: C = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: E = None
        self.o: G = None
        self.s: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: H = None
        self.x: I = None
        self.o: F = None
        self.q: B = None
        self.p: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: D = None
        self.x: A = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: A = None
        self.w: E = None
        self.x: D = None
        self.t: G = None
        self.s: C = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: E = None
        self.o: G = None
        self.s: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: H = None
        self.x: I = None
        self.o: F = None
        self.q: B = None
        self.p: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: D = None
        self.x: A = None
        self.v: A = None
        self.txt = txt

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

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