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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: I = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: B = None
        self.w: C = None
        self.t: F = None
        self.q: A = None
        self.r: F = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: H = None
        self.u: B = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: F = None
        self.z: E = None
        self.r: A = None
        self.p: B = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: I = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: B = None
        self.w: C = None
        self.t: F = None
        self.q: A = None
        self.r: F = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: H = None
        self.u: B = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: F = None
        self.z: E = None
        self.r: A = None
        self.p: B = None
        self.s: B = None
        self.txt = txt

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

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

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