class A:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: C = None
        self.x: E = None
        self.t: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: G = None
        self.t: G = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: G = None
        self.s: C = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: C = None
        self.x: D = None
        self.z: B = None
        self.t: G = None
        self.txt = txt

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

n = A("n")
l = B("l")
c = C("c")
b = D("b")
i = E("i")
a = F("a")
h = G("h")
m = G("m")
j = A("j")

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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: G = None
        self.t: G = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: G = None
        self.s: C = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: C = None
        self.x: D = None
        self.z: B = None
        self.t: G = None
        self.txt = txt

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

n = A("n")
l = B("l")
c = C("c")
b = D("b")
i = E("i")
a = F("a")
h = G("h")
m = G("m")
j = A("j")

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