rule all:
    input: expand("heavy_{i}.txt", i=range(5))

rule heavy:
    output: "heavy_{i}.txt"
    wildcard_constraints: i="\d+"
    resources: mem_mb=4096
    threads: 2
    shell: "echo heavy_{wildcards.i} > {output}"
