Sort into quarterly folders?

Suppose I have a bunch of photos named <year>-<month>-<day>_<hh>.<mm>.<ss>, and I want Hazel to move them into folders like so:
/<year>/<quarter>/<photo>
Can that be done without creating 3 rules for every quarter?
/<year>/<quarter>/<photo>
Can that be done without creating 3 rules for every quarter?