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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: D = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: A = None
        self.t: B = None
        self.r: F = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: C = None
        self.o: C = None
        self.v: D = None
        self.w: A = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: B = None
        self.o: C = None
        self.z: F = None
        self.v: B = None
        self.x: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: D = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: A = None
        self.t: B = None
        self.r: F = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: C = None
        self.o: C = None
        self.v: D = None
        self.w: A = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: B = None
        self.o: C = None
        self.z: F = None
        self.v: B = None
        self.x: C = None
        self.txt = txt

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

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

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