// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class NumberEncryptDecrypt {
    public static int encrypt(int v) {
        return (v + 7) % 10;
    }
    public static int decrypt(int v) {
        return (v + 3) % 10;
    }
    public static void main(String[] args) {
        for(int i = 0; i < 10; i++) {
            System.out.println(i + " " + encrypt(i) + " " + decrypt(encrypt(i)));
        }
    }
}
