class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: C = None
        self.z: D = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: D = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: A = None
        self.y: D = None
        self.v: G = None
        self.x: G = None
        self.p: D = None
        self.q: F = None
        self.r: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: H = None
        self.v: I = None
        self.s: A = None
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: C = None
        self.w: D = None
        self.o: D = None
        self.u: C = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

d = A("d")
a = B("a")
h = C("h")
l = D("l")
k = E("k")
i = F("i")
f = G("f")
g = H("g")
b = I("b")

d.o = b
d.q = h
d.z = l
d.u = g
a.v = g
a.x = l
a.u = l
h.s = l
h.y = l
h.p = l
h.u = d
h.r = d
h.v = f
h.x = f
h.q = i
l.x = i
l.r = i
l.w = a
l.y = d
l.s = d
l.t = d
l.v = b
l.o = g
k.y = b
k.x = i
k.u = a
k.t = a
k.o = d
k.q = d
k.w = g
k.r = h
i.p = l
i.u = g
i.v = b
i.s = d
i.o = h
f.q = k
f.u = b
f.r = h
f.w = h
f.z = a
f.y = g
f.t = i
g.z = i
g.r = i
g.t = h
g.u = h
g.w = l
g.o = l
b.y = f
assert g.t.p.v.txt == "
class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: C = None
        self.z: D = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: D = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: A = None
        self.y: D = None
        self.v: G = None
        self.x: G = None
        self.p: D = None
        self.q: F = None
        self.r: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: H = None
        self.v: I = None
        self.s: A = None
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: C = None
        self.w: D = None
        self.o: D = None
        self.u: C = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

d = A("d")
a = B("a")
h = C("h")
l = D("l")
k = E("k")
i = F("i")
f = G("f")
g = H("g")
b = I("b")

d.o = b
d.q = h
d.z = l
d.u = g
a.v = g
a.x = l
a.u = l
h.s = l
h.y = l
h.p = l
h.u = d
h.r = d
h.v = f
h.x = f
h.q = i
l.x = i
l.r = i
l.w = a
l.y = d
l.s = d
l.t = d
l.v = b
l.o = g
k.y = b
k.x = i
k.u = a
k.t = a
k.o = d
k.q = d
k.w = g
k.r = h
i.p = l
i.u = g
i.v = b
i.s = d
i.o = h
f.q = k
f.u = b
f.r = h
f.w = h
f.z = a
f.y = g
f.t = i
g.z = i
g.r = i
g.t = h
g.u = h
g.w = l
g.o = l
b.y = f
assert g.t.p.v.txt == "b"