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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: I = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: D = None
        self.t: C = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: B = None
        self.q: D = None
        self.v: A = None
        self.s: F = None
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: I = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: D = None
        self.t: C = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: B = None
        self.q: D = None
        self.v: A = None
        self.s: F = None
        self.x: E = None
        self.txt = txt

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

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