class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: B = None
        self.t: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: B = None
        self.y: G = None
        self.r: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: A = None
        self.v: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: H = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: B = None
        self.y: G = None
        self.r: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: A = None
        self.v: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: H = None
        self.v: B = None
        self.txt = txt

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

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

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

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