class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: B = None
        self.p: B = None
        self.r: F = None
        self.y: F = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: A = None
        self.u: F = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

i = A("i")
c = B("c")
j = C("j")
n = D("n")
h = E("h")
l = F("l")
d = G("d")
e = B("e")
f = D("f")

i.z = f
i.o = e
i.p = c
i.r = l
i.y = l
i.x = j
c.x = h
c.y = i
c.u = l
c.v = d
j.q = f
j.o = l
j.t = h
n.o = d
h.u = l
h.p = n
h.v = j
h.q = c
h.t = i
l.t = i
l.y = i
l.v = i
l.o = e
l.z = c
l.q = h
d.q = j
d.y = j
d.z = h
d.w = h
d.v = n
e.x = h
e.y = i
e.u = l
e.v = d
f.o = d
assert l.t.o.u.o.y.o.x.t.x.txt == "
class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: B = None
        self.p: B = None
        self.r: F = None
        self.y: F = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: A = None
        self.u: F = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

i = A("i")
c = B("c")
j = C("j")
n = D("n")
h = E("h")
l = F("l")
d = G("d")
e = B("e")
f = D("f")

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