class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: E = None
        self.v: E = None
        self.s: F = None
        self.w: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: E = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: A = None
        self.u: F = None
        self.s: F = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: E = None
        self.u: B = None
        self.y: B = None
        self.x: D = None
        self.r: E = None
        self.txt = txt

k = A("k")
l = B("l")
f = C("f")
e = D("e")
j = E("j")
c = F("c")
b = G("b")
h = F("h")
m = B("m")
i = D("i")

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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: E = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: A = None
        self.u: F = None
        self.s: F = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: E = None
        self.u: B = None
        self.y: B = None
        self.x: D = None
        self.r: E = None
        self.txt = txt

k = A("k")
l = B("l")
f = C("f")
e = D("e")
j = E("j")
c = F("c")
b = G("b")
h = F("h")
m = B("m")
i = D("i")

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