class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: C = None
        self.x: B = None
        self.z: B = None
        self.o: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: F = None
        self.v: C = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: E = None
        self.z: E = None
        self.x: I = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: F = None
        self.v: C = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: E = None
        self.z: E = None
        self.x: I = None
        self.r: F = None
        self.txt = txt

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

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

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