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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: H = None
        self.r: H = None
        self.o: G = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: G = None
        self.o: G = None
        self.u: B = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: A = None
        self.q: C = None
        self.x: D = None
        self.t: B = None
        self.z: H = None
        self.v: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: H = None
        self.r: H = None
        self.o: G = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: G = None
        self.o: G = None
        self.u: B = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: A = None
        self.q: C = None
        self.x: D = None
        self.t: B = None
        self.z: H = None
        self.v: A = None
        self.txt = txt

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

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

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

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