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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: C = None
        self.t: H = None
        self.w: I = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: A = None
        self.p: H = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: C = None
        self.t: H = None
        self.w: I = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: A = None
        self.p: H = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: E = None
        self.txt = txt

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

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

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