class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: A = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: C = None
        self.q: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: A = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: C = None
        self.q: I = None
        self.txt = txt

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

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

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