class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: E = None
        self.r: A = None
        self.y: F = None
        self.w: B = None
        self.t: D = None
        self.x: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.v: C = None
        self.u: A = None
        self.z: F = None
        self.o: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.v: C = None
        self.u: A = None
        self.z: F = None
        self.o: D = None
        self.txt = txt

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

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