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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: C = None
        self.o: C = None
        self.v: F = None
        self.y: I = None
        self.q: F = None
        self.s: E = None
        self.t: I = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: B = None
        self.w: F = None
        self.v: A = None
        self.u: I = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: C = None
        self.o: C = None
        self.v: F = None
        self.y: I = None
        self.q: F = None
        self.s: E = None
        self.t: I = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: B = None
        self.w: F = None
        self.v: A = None
        self.u: I = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

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

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